From 98538b4bea8653d47ac4cc1b6f750a245b0a5e45 Mon Sep 17 00:00:00 2001 From: Owen Anderson Date: Thu, 12 Nov 2009 23:22:41 +0000 Subject: [PATCH] Re-enable this code, since redundant PHIs are now being better nuked. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@87042 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/SCCVN.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Transforms/Scalar/SCCVN.cpp b/lib/Transforms/Scalar/SCCVN.cpp index 8dd718ab218..001267a7d7d 100644 --- a/lib/Transforms/Scalar/SCCVN.cpp +++ b/lib/Transforms/Scalar/SCCVN.cpp @@ -629,9 +629,6 @@ bool SCCVN::runOnFunction(Function& F) { } } - // FIXME: This code is commented out for now, because it can lead to the - // insertion of a lot of redundant PHIs being inserted by SSAUpdater. -#if 0 // Perform a forward data-flow to compute availability at all points on // the CFG. do { @@ -709,7 +706,6 @@ bool SCCVN::runOnFunction(Function& F) { CurInst->eraseFromParent(); } } -#endif VT.clear(); for (DenseMap::iterator -- 2.34.1