From: Florian Hahn Date: Fri, 20 Jul 2018 14:37:10 +0000 (+0000) Subject: [IPSCCP] Fix for bot failure caused by r337548 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59b3465a59e4560db27ff91e803d2ce16844f803;p=llvm [IPSCCP] Fix for bot failure caused by r337548 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337554 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index e691cb60a8d..5e3ddeda2d4 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -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);