[llvm] r337554 - [IPSCCP] Fix for bot failure caused by r337548
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 20 07:37:11 PDT 2018
Author: fhahn
Date: Fri Jul 20 07:37:10 2018
New Revision: 337554
URL: http://llvm.org/viewvc/llvm-project?rev=337554&view=rev
Log:
[IPSCCP] Fix for bot failure caused by r337548
Modified:
llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/SCCP.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/SCCP.cpp?rev=337554&r1=337553&r2=337554&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/SCCP.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/SCCP.cpp Fri Jul 20 07:37:10 2018
@@ -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);
More information about the llvm-commits
mailing list