]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.ssa] cmd/compile: remove redundant compare ops
authorKeith Randall <khr@golang.org>
Fri, 5 Feb 2016 02:02:03 +0000 (18:02 -0800)
committerKeith Randall <khr@golang.org>
Thu, 11 Feb 2016 21:01:17 +0000 (21:01 +0000)
commit6d40c62732ac76333426bdd6a67f8c1457ac8334
treecf0f3f7005afe216fcf3e4ba6855f0cf26448916
parentfd458ba49991fbdd65acaa83c970b9d6c63ec87e
[dev.ssa] cmd/compile: remove redundant compare ops

Flagalloc was recalculating flags is some situations
when it didn't need to.  Fixed by using the same name
for the original flag calculation instruction throughout.

Change-Id: Ic0bf58f728a8d87748434dd25a67b0708755e1f8
Reviewed-on: https://go-review.googlesource.com/19237
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/flagalloc.go