From: Chris Lattner Date: Fri, 28 Sep 2001 00:06:42 +0000 (+0000) Subject: ADCE is broken but at least we know why X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=8a396e57abd6f047cfc875a41c4c23b9e1914824 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 --- diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index dcf740e7f90..631db2cea78 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -17,7 +17,7 @@ #include #include -//#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);