]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: Use pre-regalloc value ID in lateSpillUse
authorKeith Randall <khr@golang.org>
Thu, 21 Apr 2016 20:58:22 +0000 (13:58 -0700)
committerKeith Randall <khr@golang.org>
Thu, 21 Apr 2016 21:25:50 +0000 (21:25 +0000)
commit8ad8d7d87edf0aec3b56c2e2d0139bc12531d359
treed6040366a98839c4a9d0caa7ff4e200433f69983
parent40f1d0ca9f978376f7db24de3737b58589c8542b
cmd/compile: Use pre-regalloc value ID in lateSpillUse

The cached copy's ID is sometimes outside the bounds of the orig array.

There's no reason to start at the cached copy and work backwards
to the original value. We already have the original value ID at
all the callsites.

Fixes noopt build

Change-Id: I313508a1917e838a87e8cc83b2ef3c2e4a8db304
Reviewed-on: https://go-review.googlesource.com/22355
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/ssa/regalloc.go