mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Fix bug: TailDup/2003-06-24-Simpleloop.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6881 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0d09e6c8f
commit
fcd74e2e31
@ -203,7 +203,8 @@ void TailDup::InsertPHINodesIfNecessary(Instruction *OrigInst, Value *NewInst,
|
|||||||
for (Value::use_iterator I = OrigInst->use_begin(), E = OrigInst->use_end();
|
for (Value::use_iterator I = OrigInst->use_begin(), E = OrigInst->use_end();
|
||||||
I != E; ++I) {
|
I != E; ++I) {
|
||||||
Instruction *In = cast<Instruction>(*I);
|
Instruction *In = cast<Instruction>(*I);
|
||||||
if (In->getParent() != OrigBlock) // Don't modify uses in the orig block!
|
if (In->getParent() != OrigBlock || // Don't modify uses in the orig block!
|
||||||
|
isa<PHINode>(In))
|
||||||
Users.push_back(In);
|
Users.push_back(In);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user