File tree 1 file changed +0
-14
lines changed
src/cmd/compile/internal/ssa 1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -1544,27 +1544,13 @@ func (s *regAllocState) regalloc(f *Func) {
1544
1544
}
1545
1545
}
1546
1546
}
1547
-
1548
1547
// Avoid future fixed uses if we can.
1549
1548
if m &^desired .avoid != 0 {
1550
1549
m &^= desired .avoid
1551
1550
}
1552
1551
// Save input 0 to a new register so we can clobber it.
1553
1552
c := s .allocValToReg (v .Args [0 ], m , true , v .Pos )
1554
1553
s .copies [c ] = false
1555
-
1556
- // Normally we use the register of the old copy of input 0 as the target.
1557
- // However, if input 0 is already in its desired register then we use
1558
- // the register of the new copy instead.
1559
- if rp , ok := s .f .getHome (args [0 ].ID ).(* Register ); ok {
1560
- r := register (rp .num )
1561
- for _ , r2 := range dinfo [idx ].in [0 ] {
1562
- if r == r2 {
1563
- args [0 ] = c
1564
- break
1565
- }
1566
- }
1567
- }
1568
1554
}
1569
1555
1570
1556
ok:
You can’t perform that action at this time.
0 commit comments