[llvm-commits] CVS: llvm/lib/Analysis/LoopInfo.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Sep 29 18:01:01 PDT 2002
Changes in directory llvm/lib/Analysis:
LoopInfo.cpp updated: 1.24 -> 1.25
---
Log message:
Minor tweak
---
Diffs of the changes:
Index: llvm/lib/Analysis/LoopInfo.cpp
diff -u llvm/lib/Analysis/LoopInfo.cpp:1.24 llvm/lib/Analysis/LoopInfo.cpp:1.25
--- llvm/lib/Analysis/LoopInfo.cpp:1.24 Sun Sep 29 16:43:04 2002
+++ llvm/lib/Analysis/LoopInfo.cpp Sun Sep 29 17:59:29 2002
@@ -147,8 +147,9 @@
BasicBlock *Header = getHeader();
for (pred_iterator PI = pred_begin(Header), PE = pred_end(Header);
PI != PE; ++PI)
- if (!contains(*PI)) { // If the block is not in the loop...
- if (Out) return 0; // Multiple predecessors outside the loop
+ if (!contains(*PI)) { // If the block is not in the loop...
+ if (Out && Out != *PI)
+ return 0; // Multiple predecessors outside the loop
Out = *PI;
}
More information about the llvm-commits
mailing list