forked from OSchip/llvm-project
Fix major problem with PHI node traversal: rechecking PHIs should go into
the visit function. The worklist is for when their lattice value changes. llvm-svn: 5927
This commit is contained in:
parent
0347cda8b8
commit
3c98276168
|
@ -162,7 +162,7 @@ private:
|
|||
// can be rechecked.
|
||||
for (BasicBlock::iterator I = BB->begin();
|
||||
PHINode *PN = dyn_cast<PHINode>(I); ++I)
|
||||
InstWorkList.push_back(PN);
|
||||
visitPHINode(*PN);
|
||||
|
||||
} else {
|
||||
DEBUG(std::cerr << "Marking BB Executable: " << *BB);
|
||||
|
|
Loading…
Reference in New Issue