projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a6dc9fb
)
Fix a error that hadn't yet cause any problems, but I'm sure it would have
author
Owen Anderson
<resistor@mac.com>
Wed, 19 Jul 2006 03:51:48 +0000
(
03:51
+0000)
committer
Owen Anderson
<resistor@mac.com>
Wed, 19 Jul 2006 03:51:48 +0000
(
03:51
+0000)
somewhere down the road.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29197
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/LoopUnswitch.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/LoopUnswitch.cpp
b/lib/Transforms/Scalar/LoopUnswitch.cpp
index b3003845d4cfb196ce73cfd385c615624787e026..8f049b8668e00be6e0e5a4c6f87e7711ba6a979f 100644
(file)
--- a/
lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/
lib/Transforms/Scalar/LoopUnswitch.cpp
@@
-610,7
+610,7
@@
void LoopUnswitch::UnswitchNontrivialCondition(Value *LIC, Constant *Val,
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;