From 2f7a7447c2d44ef65548cbe746ae44a886630f12 Mon Sep 17 00:00:00 2001 From: Sanjoy Das Date: Wed, 27 Jan 2016 17:05:06 +0000 Subject: [PATCH] [IndVars] Use isSCEVable; NFC llvm-svn: 258945 --- llvm/lib/Transforms/Scalar/IndVarSimplify.cpp | 3 +-- 1 file changed, 1 insertion(+), 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 -- 2.7.4