mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.ssa] cmd/compile: don't move OpSP and OpSB values
regalloc expects to find all OpSP and OpSB values in the entry block. There is no value to moving them; don't. Change-Id: I775198f03ce7420348721ffc5e7d2bab065465b1 Reviewed-on: https://go-review.googlesource.com/13266 Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
e13954981e
commit
6548b63d6b
2 changed files with 9 additions and 1 deletions
|
|
@ -101,7 +101,8 @@ func regalloc(f *Func) {
|
|||
|
||||
var oldSched []*Value
|
||||
|
||||
// Hack to find sp and sb Values and assign them a register. (TODO: make not so hacky)
|
||||
// Hack to find sp and sb Values and assign them a register.
|
||||
// TODO: make not so hacky; update the tighten pass when this is done
|
||||
var sp, sb *Value
|
||||
for _, v := range f.Entry.Values {
|
||||
switch v.Op {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue