aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-01-07 07:08:17 +0000
committerAndrew Trick <atrick@apple.com>2012-01-07 07:08:17 +0000
commit24f670f1bae0281b08276229041dfc952a810dbf (patch)
treeec57b0967b2b1aca21cfed5a1eadc6b83361a910 /lib/Transforms/Scalar
parent0ff100dec047d7302cd45d9139d1aed09976be11 (diff)
downloadexternal_llvm-24f670f1bae0281b08276229041dfc952a810dbf.zip
external_llvm-24f670f1bae0281b08276229041dfc952a810dbf.tar.gz
external_llvm-24f670f1bae0281b08276229041dfc952a810dbf.tar.bz2
Enable redundant phi elimination after LSR.
This will be more important as we extend the LSR pass in ways that don't rely on the formula solver. In particular, we need it for constructing IV chains. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r--lib/Transforms/Scalar/LoopStrengthReduce.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 8f3a5ab..c61714d 100644
--- a/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/lib/Transforms/Scalar/LoopStrengthReduce.cpp
@@ -86,8 +86,10 @@ static cl::opt<bool> EnableRetry(
// Temporary flag to cleanup congruent phis after LSR phi expansion.
// It's currently disabled until we can determine whether it's truly useful or
// not. The flag should be removed after the v3.0 release.
+// This is now needed for ivchains.
static cl::opt<bool> EnablePhiElim(
- "enable-lsr-phielim", cl::Hidden, cl::desc("Enable LSR phi elimination"));
+ "enable-lsr-phielim", cl::Hidden, cl::init(true),
+ cl::desc("Enable LSR phi elimination"));
namespace {