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:
Chris Lattner 2003-04-25 03:35:10 +00:00
parent 0347cda8b8
commit 3c98276168
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ private:
// can be rechecked. // can be rechecked.
for (BasicBlock::iterator I = BB->begin(); for (BasicBlock::iterator I = BB->begin();
PHINode *PN = dyn_cast<PHINode>(I); ++I) PHINode *PN = dyn_cast<PHINode>(I); ++I)
InstWorkList.push_back(PN); visitPHINode(*PN);
} else { } else {
DEBUG(std::cerr << "Marking BB Executable: " << *BB); DEBUG(std::cerr << "Marking BB Executable: " << *BB);