summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJames Molloy <james.molloy@arm.com>2015-10-07 09:03:34 +0000
committerJames Molloy <james.molloy@arm.com>2015-10-07 09:03:34 +0000
commit47efaeb36e3720bcc4e6624a10dcd3194f84ba24 (patch)
treee7c041160ebba67deafd28f416527c7aab488928 /llvm/lib
parent369c1d663b76aa68a1940f1622a358c597b09c5c (diff)
downloadbcm5719-llvm-47efaeb36e3720bcc4e6624a10dcd3194f84ba24.tar.gz
bcm5719-llvm-47efaeb36e3720bcc4e6624a10dcd3194f84ba24.zip
Revert "This patch builds on top of D13378 to handle constant condition."
This reverts commit r249431. This caused failures in sqlite3: http://lab.llvm.org:8011/builders/clang-native-arm-lnt/builds/14453 llvm-svn: 249528
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index caa0899f6a9..9715d83fd10 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -3904,11 +3904,6 @@ const SCEV *ScalarEvolution::createNodeForSelectOrPHI(Instruction *I,
Value *Cond,
Value *TrueVal,
Value *FalseVal) {
- // Handle "constant" branch or select. This can occur for instance when a
- // loop pass transforms an inner loop and moves on to process the outer loop.
- if (auto *CI = dyn_cast<ConstantInt>(Cond))
- return getSCEV(CI->isOne() ? TrueVal : FalseVal);
-
// Try to match some simple smax or umax patterns.
auto *ICI = dyn_cast<ICmpInst>(Cond);
if (!ICI)
OpenPOWER on IntegriCloud