[llvm-commits] CVS: llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
Owen Anderson
resistor at mac.com
Tue Jul 18 20:52:00 PDT 2006
Changes in directory llvm/lib/Transforms/Scalar:
LoopUnswitch.cpp updated: 1.44 -> 1.45
---
Log message:
Fix a error that hadn't yet cause any problems, but I'm sure it would have
somewhere down the road.
---
Diffs of the changes: (+1 -1)
LoopUnswitch.cpp | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/Transforms/Scalar/LoopUnswitch.cpp
diff -u llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.44 llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.45
--- llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:1.44 Wed Jun 28 12:47:50 2006
+++ llvm/lib/Transforms/Scalar/LoopUnswitch.cpp Tue Jul 18 22:51:48 2006
@@ -610,7 +610,7 @@
InsertedPHIs.insert(NewLCSSA);
}
- Instruction* InsertPt = EndBlock->begin();
+ BasicBlock::iterator InsertPt = EndBlock->begin();
while (dyn_cast<PHINode>(InsertPt)) ++InsertPt;
for (BasicBlock::iterator I = MiddleBlock->begin();
(OldLCSSA = dyn_cast<PHINode>(I)) && InsertedPHIs.count(OldLCSSA) == 0;
More information about the llvm-commits
mailing list