mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-13 15:11:39 +00:00
Ignore IMPLICIT_DEF instructions when computing physreg liveness.
While they appear to provide a normal clobbering def, they don't in the case of the awkward IMPLICIT_DEF+INSERT_SUBREG idiom. It would be good to change INSERT_SUBREG; until then, this change allows post-regalloc scheduling to cope in a mildly conservative way. llvm-svn: 60583
This commit is contained in:
parent
1b795803dd
commit
be3e0caacb
@ -353,6 +353,13 @@ bool SchedulePostRATDList::BreakAntiDependencies() {
|
||||
I != E; ++I, --Count) {
|
||||
MachineInstr *MI = &*I;
|
||||
|
||||
// After regalloc, IMPLICIT_DEF instructions aren't safe to treat as
|
||||
// dependence-breaking. In the case of an INSERT_SUBREG, the IMPLICIT_DEF
|
||||
// is left behind appearing to clobber the super-register, while the
|
||||
// subregister needs to remain live. So we just ignore them.
|
||||
if (MI->getOpcode() == TargetInstrInfo::IMPLICIT_DEF)
|
||||
continue;
|
||||
|
||||
// Check if this instruction has an anti-dependence that we're
|
||||
// interested in.
|
||||
DenseMap<MachineInstr *, unsigned>::iterator C = CriticalAntiDeps.find(MI);
|
||||
|
Loading…
x
Reference in New Issue
Block a user