]> granicus.if.org Git - llvm/commitdiff
[IPSCCP] Fix for bot failure caused by r337548
authorFlorian Hahn <florian.hahn@arm.com>
Fri, 20 Jul 2018 14:37:10 +0000 (14:37 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Fri, 20 Jul 2018 14:37:10 +0000 (14:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337554 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SCCP.cpp

index e691cb60a8d8e85cb9708566686d7f33a89cdc16..5e3ddeda2d49fd54e4e409c6f2cef2bb53299cd0 100644 (file)
@@ -1011,7 +1011,7 @@ void SCCPSolver::visitCmpInst(CmpInst &I) {
   }
 
   // If operands are still unknown, wait for it to resolve.
-  if (!V1State.isOverdefined() && !V2State.isOverdefined())
+  if (!V1State.isOverdefined() && !V2State.isOverdefined() && !IV.isConstant())
     return;
 
   markOverdefined(&I);