From: Sanjoy Das Date: Wed, 27 Jan 2016 17:05:06 +0000 (+0000) Subject: [IndVars] Use isSCEVable; NFC X-Git-Tag: llvmorg-3.9.0-rc1~15835 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2f7a7447c2d44ef65548cbe746ae44a886630f12;p=platform%2Fupstream%2Fllvm.git [IndVars] Use isSCEVable; NFC llvm-svn: 258945 --- 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