aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-28 00:06:42 +0000
committerChris Lattner <sabre@nondot.org>2001-09-28 00:06:42 +0000
commit8a396e57abd6f047cfc875a41c4c23b9e1914824 (patch)
tree24debe7eba85bc0c0e7a874cca95521fb8ccc967 /lib
parent4a0cd6cadab99a577b47b82caebef6ce4237ea58 (diff)
downloadexternal_llvm-8a396e57abd6f047cfc875a41c4c23b9e1914824.zip
external_llvm-8a396e57abd6f047cfc875a41c4c23b9e1914824.tar.gz
external_llvm-8a396e57abd6f047cfc875a41c4c23b9e1914824.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/Scalar/ADCE.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp
index dcf740e..631db2c 100644
--- a/lib/Transforms/Scalar/ADCE.cpp
+++ b/lib/Transforms/Scalar/ADCE.cpp
@@ -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);