[llvm] r258945 - [IndVars] Use isSCEVable; NFC

Sanjoy Das via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 09:05:06 PST 2016


Author: sanjoy
Date: Wed Jan 27 11:05:06 2016
New Revision: 258945

URL: http://llvm.org/viewvc/llvm-project?rev=258945&view=rev
Log:
[IndVars] Use isSCEVable; NFC

Modified:
    llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp

Modified: llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp?rev=258945&r1=258944&r2=258945&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/IndVarSimplify.cpp Wed Jan 27 11:05:06 2016
@@ -564,8 +564,7 @@ void IndVarSimplify::rewriteLoopExitValu
       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




More information about the llvm-commits mailing list