diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 49748ff4c439..75414ef3864d 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -1331,9 +1331,6 @@ 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. diff --git a/llvm/test/Transforms/ConstProp/shift.ll b/llvm/test/Transforms/ConstProp/shift.ll index 91027096dd5d..de23fe98ad87 100644 --- a/llvm/test/Transforms/ConstProp/shift.ll +++ b/llvm/test/Transforms/ConstProp/shift.ll @@ -1,5 +1,4 @@ ; RUN: opt < %s -constprop -S | FileCheck %s -; RUN: opt < %s -sccp -S | FileCheck %s ; CHECK-LABEL: shift_undef_64 define void @shift_undef_64(i64* %p) {