summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
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
commit06f6c05d08866c733a565a895a78f304c649e561 (patch)
treeb2f0146b7f504039d6fba5f28d6cbde7ebda28f5 /llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
parent73a040906d0cbf2240ed2bf19523fc0d73651bf8 (diff)
downloadbcm5719-llvm-06f6c05d08866c733a565a895a78f304c649e561.tar.gz
bcm5719-llvm-06f6c05d08866c733a565a895a78f304c649e561.zip
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. llvm-svn: 147724
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
index 8f3a5ab071c..c61714d3ffb 100644
--- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+++ b/llvm/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 {
OpenPOWER on IntegriCloud