ADCE is broken but at least we know why

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@656 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-09-28 00:06:42 +00:00
parent 4a0cd6cada
commit 8a396e57ab

View File

@ -17,7 +17,7 @@
#include <set>
#include <algorithm>
//#define DEBUG_ADCE 1
#define DEBUG_ADCE 1
//===----------------------------------------------------------------------===//
// ADCE Class
@ -184,6 +184,11 @@ bool ADCE::doADCE() {
MadeChanges = true;
}
AliveBlocks.insert(E);
// Next we need to change any PHI nodes in the entry block to refer to the
// new predecessor node...
} else {
// We need to move the new entry block to be the first bb of the method.
Method::iterator EBI = find(M->begin(), M->end(), EntryBlock);