summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Scalar/SCCP.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp
index 75414ef3864..49748ff4c43 100644
--- a/llvm/lib/Transforms/Scalar/SCCP.cpp
+++ b/llvm/lib/Transforms/Scalar/SCCP.cpp
@@ -1331,6 +1331,9 @@ bool SCCPSolver::ResolvedUndefsIn(Function &F) {
}
Op1LV = getValueState(I.getOperand(1));
+
+ if (!Op0LV.isUndefined() && !Op1LV.isUndefined())
+ break;
}
// If this is an instructions whose result is defined even if the input is
// not fully defined, propagate the information.
OpenPOWER on IntegriCloud