SmallPtrSet<MachineBasicBlock *, 16> Visited;
SmallVector<POStackEntry, 16> Stack;
- MachineBasicBlock *Entry = &*MF.begin();
- Visited.insert(Entry);
- Stack.push_back(POStackEntry(Entry, MF, MLI));
+ MachineBasicBlock *EntryBlock = &*MF.begin();
+ Visited.insert(EntryBlock);
+ Stack.push_back(POStackEntry(EntryBlock, MF, MLI));
for (;;) {
POStackEntry &Entry = Stack.back();
#endif
}
-static int GetLoopDepth(const MachineLoop *Loop) {
+static unsigned GetLoopDepth(const MachineLoop *Loop) {
return Loop ? Loop->getLoopDepth() : 0;
}
MachineBasicBlock::iterator InsertPos;
MachineLoop *HeaderLoop = MLI.getLoopFor(Header);
- int MBBLoopDepth = GetLoopDepth(MLI.getLoopFor(&MBB));
- int HeaderLoopDepth = GetLoopDepth(HeaderLoop);
+ unsigned MBBLoopDepth = GetLoopDepth(MLI.getLoopFor(&MBB));
+ unsigned HeaderLoopDepth = GetLoopDepth(HeaderLoop);
if (HeaderLoopDepth > MBBLoopDepth) {
// The nearest common dominating point is more deeply nested. Insert the
// BLOCK just above the LOOP.
- for (int i = 0; i < HeaderLoopDepth - 1 - MBBLoopDepth; ++i)
+ for (unsigned i = 0; i < HeaderLoopDepth - 1 - MBBLoopDepth; ++i)
HeaderLoop = HeaderLoop->getParentLoop();
Header = HeaderLoop->getHeader();
InsertPos = Header->begin();