diff options
| author | Alexandru Moșoi <mosoi@google.com> | 2016-04-04 19:23:41 +0200 |
|---|---|---|
| committer | Alexandru Moșoi <alexandru@mosoi.ro> | 2016-04-06 20:38:51 +0000 |
| commit | 04945edd40fff4d66321a4f98c1bb070b6356008 (patch) | |
| tree | 05f88874130128e0bdf11f2fa10d8904508ae6be /src/runtime/lfstack_32bit.go | |
| parent | cdc0ebbebe64d8fa601914945112db306c85c426 (diff) | |
| download | go-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
