forked from OSchip/llvm-project
After PostRA scheduling, don't set kill flags on undef operands.
This should fix the ATOM buildbot failing on break-avx-dep.ll. llvm-svn: 192824
This commit is contained in:
parent
bab2afbfbe
commit
811a2ef96e
|
@ -515,11 +515,11 @@ void SchedulePostRATDList::FixupKills(MachineBasicBlock *MBB) {
|
||||||
|
|
||||||
// Examine all used registers and set/clear kill flag. When a
|
// Examine all used registers and set/clear kill flag. When a
|
||||||
// register is used multiple times we only set the kill flag on
|
// register is used multiple times we only set the kill flag on
|
||||||
// the first use.
|
// the first use. Don't set kill flags on undef operands.
|
||||||
killedRegs.reset();
|
killedRegs.reset();
|
||||||
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
for (unsigned i = 0, e = MI->getNumOperands(); i != e; ++i) {
|
||||||
MachineOperand &MO = MI->getOperand(i);
|
MachineOperand &MO = MI->getOperand(i);
|
||||||
if (!MO.isReg() || !MO.isUse()) continue;
|
if (!MO.isReg() || !MO.isUse() || MO.isUndef()) continue;
|
||||||
unsigned Reg = MO.getReg();
|
unsigned Reg = MO.getReg();
|
||||||
if ((Reg == 0) || MRI.isReserved(Reg)) continue;
|
if ((Reg == 0) || MRI.isReserved(Reg)) continue;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue