mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Fixed a bug in the ExecutionDependencyFix pass that caused dependencies to not propagate through implicit defs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165102 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -626,9 +626,12 @@ void ExeDepsFix::visitSoftInstr(MachineInstr *mi, unsigned mask) {
|
||||
}
|
||||
dv->Instrs.push_back(mi);
|
||||
|
||||
// Finally set all defs and non-collapsed uses to dv.
|
||||
for (unsigned i = 0, e = mi->getDesc().getNumOperands(); i != e; ++i) {
|
||||
MachineOperand &mo = mi->getOperand(i);
|
||||
// Finally set all defs and non-collapsed uses to dv. We must iterate through
|
||||
// all the operators, including imp-def ones.
|
||||
for (MachineInstr::mop_iterator ii = mi->operands_begin(),
|
||||
ee = mi->operands_end();
|
||||
ii != ee; ++ii) {
|
||||
MachineOperand &mo = *ii;
|
||||
if (!mo.isReg()) continue;
|
||||
int rx = regIndex(mo.getReg());
|
||||
if (rx < 0) continue;
|
||||
|
Reference in New Issue
Block a user