Fix major problem with PHI node traversal: rechecking PHIs should go into

the visit function.  The worklist is for when their lattice value changes.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5927 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2003-04-25 03:35:10 +00:00
parent 0c13998775
commit bceb2b0061

View File

@ -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);