]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: mark LEA and MOV instructions as not clobbering flags
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 22 Aug 2015 16:52:36 +0000 (09:52 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 24 Aug 2015 22:10:55 +0000 (22:10 +0000)
commitf3171994e92a7cf70ddb52aff557d22559de9b18
treedb41ba424ac3c546074a706e90d1131825023747
parent220e70540445c26463238ff094b6254055ac2b31
[dev.ssa] cmd/compile: mark LEA and MOV instructions as not clobbering flags

This further reduces the number of flags spills
during make.bash by about 50%.

Note that GetG is implemented by one or two MOVs,
which is why it does not clobber flags.

Change-Id: I6fede8c027b7dc340e00d1e15df1b87bf2b2d9ec
Reviewed-on: https://go-review.googlesource.com/13843
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/gen/AMD64Ops.go
src/cmd/compile/internal/ssa/opGen.go