1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

ADCE is broken but at least we know why

llvm-svn: 656
This commit is contained in:
Chris Lattner 2001-09-28 00:06:42 +00:00
parent 48f0041088
commit 2fc6c49ee7

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