aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/lfstack_32bit.go
diff options
context:
space:
mode:
authorAlexandru Moșoi <mosoi@google.com>2016-04-04 19:23:41 +0200
committerAlexandru Moșoi <alexandru@mosoi.ro>2016-04-06 20:38:51 +0000
commit04945edd40fff4d66321a4f98c1bb070b6356008 (patch)
tree05f88874130128e0bdf11f2fa10d8904508ae6be /src/runtime/lfstack_32bit.go
parentcdc0ebbebe64d8fa601914945112db306c85c426 (diff)
downloadgo-04945edd40fff4d66321a4f98c1bb070b6356008.tar.xz
cmd/compile: replaces ANDQ with MOV?ZX
Where possible replace ANDQ with MOV?ZX. Takes care that we don't regress wrt bounds checking, for example [1000]int{}[i&255]. According to "Intel 64 and IA-32 Architectures Optimization Reference Manual" Section: "3.5.1.13 Zero-Latency MOV Instructions" MOV?ZX instructions have zero latency on newer processors. Updates #15105 Change-Id: I63539fdbc5812d5563aa1ebc49eca035bd307997 Reviewed-on: https://go-review.googlesource.com/21508 Reviewed-by: Айнар Гарипов <gugl.zadolbal@gmail.com> Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/runtime/lfstack_32bit.go')
0 files changed, 0 insertions, 0 deletions