]> Cypherpunks repositories - gostls13.git/commit
cmd/6g: peephole fixes/additions
authorRuss Cox <rsc@golang.org>
Thu, 24 May 2012 16:11:32 +0000 (12:11 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 24 May 2012 16:11:32 +0000 (12:11 -0400)
commit3d3b4906f94a40b7dd2e66ad3ad48e86b5ce6f89
treeeac3332e3086c90103041d5b9d8f0797c94eda01
parent34ad3995e06fb4a4e209adfbd11367cc3d22f8b8
cmd/6g: peephole fixes/additions

* Shift/rotate by constant doesn't have to stop subprop. (also in 8g)
* Remove redundant MOVLQZX instructions.
* An attempt at issuing loads early.
  Good for 0.5% on a good day, might not be worth keeping.
  Need to understand more about whether the x86
  looks ahead to what loads might be coming up.

R=ken2, ken
CC=golang-dev
https://golang.org/cl/6203091
src/cmd/6g/peep.c
src/cmd/8g/peep.c