Skip to content

Commit 9bac48e

Browse files
Update llvm/lib/CodeGen/MachinePipeliner.cpp
Co-authored-by: Ryotaro Kasuga <[email protected]>
1 parent 0d0d3e1 commit 9bac48e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/CodeGen/MachinePipeliner.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ static bool hasPHICycle(const MachineBasicBlock *LoopHeader,
523523
auto Ins = PhiDeps.try_emplace(DefReg).first;
524524

525525
// PHI operands are (Reg, MBB) pairs starting at index 1.
526-
for (unsigned i = 1; i < MI.getNumOperands(); i += 2)
527-
Ins->second.push_back(MI.getOperand(i).getReg());
526+
for (unsigned I = 1; I < MI.getNumOperands(); I += 2)
527+
Ins->second.push_back(MI.getOperand(I).getReg());
528528
}
529529

530530
// DFS to detect cycles among PHI nodes.

0 commit comments

Comments
 (0)