summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-05-11 23:06:10 +0000
committerDavide Italiano <davide@freebsd.org>2016-05-11 23:06:10 +0000
commitcd7c84bd8b46cef1bd11840325814666d31e3941 (patch)
tree4b6e1ce79df724a3aecda55374abe4dfdfdb1589
parent2e03094d45e4ffa3aba3bcbef42f612c5b72bf2f (diff)
downloadbcm5719-llvm-cd7c84bd8b46cef1bd11840325814666d31e3941.tar.gz
bcm5719-llvm-cd7c84bd8b46cef1bd11840325814666d31e3941.zip
Revert "[SCCP] Partially propagate informations when the input is not fully defined."
This reverts commit r269105 as it caused PR27712. llvm-svn: 269252
-rw-r--r--llvm/lib/Transforms/Scalar/SCCP.cpp3
-rw-r--r--llvm/test/Transforms/ConstProp/shift.ll1
2 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp
index 49748ff4c43..75414ef3864 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 91027096dd5..de23fe98ad8 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) {
OpenPOWER on IntegriCloud