]> Cypherpunks repositories - gostls13.git/commit
[dev.ssa] cmd/compile: Use ADD instead of LEA when we can
authorKeith Randall <khr@golang.org>
Thu, 4 Feb 2016 23:08:47 +0000 (15:08 -0800)
committerKeith Randall <khr@golang.org>
Fri, 5 Feb 2016 00:15:35 +0000 (00:15 +0000)
commita0da2d242c0830daf9de469f2db7f1b85523bf05
tree996d0127640d808ad195a48ddb0d3f32b1cba078
parent0543447597d54de911bd1e02369a0b191849b4bd
[dev.ssa] cmd/compile: Use ADD instead of LEA when we can

If the output register is one of the input registers,
we can use a real add instead of LEA.

Change-Id: Ide58f1536afb077c0b939d3a8c7555807fd1c5e3
Reviewed-on: https://go-review.googlesource.com/19234
Reviewed-by: Alexandru Moșoi <alexandru@mosoi.ro>
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/ssa/TODO