aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-01-27 17:05:06 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-01-27 17:05:06 +0000
commit2f7a7447c2d44ef65548cbe746ae44a886630f12 (patch)
treefcebb07edf94ee795c03848fd940bd0fed7fd2f9 /llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
parent8fdf87c3380c250b1d042c76126cf6d06ad14b6e (diff)
downloadllvm-2f7a7447c2d44ef65548cbe746ae44a886630f12.zip
llvm-2f7a7447c2d44ef65548cbe746ae44a886630f12.tar.gz
llvm-2f7a7447c2d44ef65548cbe746ae44a886630f12.tar.bz2
[IndVars] Use isSCEVable; NFC
llvm-svn: 258945
Diffstat (limited to 'llvm/lib/Transforms/Scalar/IndVarSimplify.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/IndVarSimplify.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
index f47eaf9..b9d3bf5 100644
--- a/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
+++ b/llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
@@ -564,8 +564,7 @@ void IndVarSimplify::rewriteLoopExitValues(Loop *L, SCEVExpander &Rewriter) {
if (PN->use_empty())
continue; // dead use, don't replace it
- // SCEV only supports integer expressions for now.
- if (!PN->getType()->isIntegerTy() && !PN->getType()->isPointerTy())
+ if (!SE->isSCEVable(PN->getType()))
continue;
// It's necessary to tell ScalarEvolution about this explicitly so that