mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 19:12:56 +02:00
Fix a error that hadn't yet cause any problems, but I'm sure it would have
somewhere down the road. llvm-svn: 29197
This commit is contained in:
parent
8d82c97338
commit
8a36136176
@ -610,7 +610,7 @@ void LoopUnswitch::UnswitchNontrivialCondition(Value *LIC, Constant *Val,
|
|||||||
InsertedPHIs.insert(NewLCSSA);
|
InsertedPHIs.insert(NewLCSSA);
|
||||||
}
|
}
|
||||||
|
|
||||||
Instruction* InsertPt = EndBlock->begin();
|
BasicBlock::iterator InsertPt = EndBlock->begin();
|
||||||
while (dyn_cast<PHINode>(InsertPt)) ++InsertPt;
|
while (dyn_cast<PHINode>(InsertPt)) ++InsertPt;
|
||||||
for (BasicBlock::iterator I = MiddleBlock->begin();
|
for (BasicBlock::iterator I = MiddleBlock->begin();
|
||||||
(OldLCSSA = dyn_cast<PHINode>(I)) && InsertedPHIs.count(OldLCSSA) == 0;
|
(OldLCSSA = dyn_cast<PHINode>(I)) && InsertedPHIs.count(OldLCSSA) == 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user