git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@255253
91177308-0d34-0410-b5e6-
96231b3b80d8
const MachineRegisterInfo &MRI = MF.getRegInfo();
MachineDominatorTree &MDT = getAnalysis<MachineDominatorTree>();
+ bool Changed = false;
assert(MRI.isSSA() && "StoreResults depends on SSA form");
if (&MI == Where || !MDT.dominates(&MI, Where))
continue;
}
+ Changed = true;
DEBUG(dbgs() << "Setting operand " << O << " in " << *Where
<< " from " << MI << "\n");
O.setReg(ToReg);
}
}
- return true;
+ return Changed;
}