diff options
| author | Michael Munday <munday@ca.ibm.com> | 2016-04-10 21:58:37 -0400 |
|---|---|---|
| committer | Matthew Dempsky <mdempsky@google.com> | 2016-04-11 05:19:13 +0000 |
| commit | 2a4158207edb499f8b210aaa7a9af103b93b5ac7 (patch) | |
| tree | b9b9b04f5910738be15776e78f05f9a371081ab8 /src/runtime/lfstack_amd64.go | |
| parent | a00ad5f47ea9c950dd041b33476c2bb4568496e1 (diff) | |
| download | go-2a4158207edb499f8b210aaa7a9af103b93b5ac7.tar.xz | |
cmd/compile/internal/gc: refactor cgen_div
This commit adds two new functions to cgen.go: hasHMUL64 and
hasRROTC64. These are used to determine whether or not an
architecture supports the instructions needed to perform an
optimization in cgen_div.
This commit should not affect existing architectures (although it
does add s390x to the new functions). However, since most
architectures support HMUL the hasHMUL64 function could be
modified to enable most of the optimizations in cgen_div on those
platforms.
Change-Id: I33bf329ddeb6cf2954bd17b7c161012de352fb62
Reviewed-on: https://go-review.googlesource.com/21775
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/lfstack_amd64.go')
0 files changed, 0 insertions, 0 deletions
