aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-07-21 00:34:29 +0000
committerDevang Patel <dpatel@apple.com>2007-07-21 00:34:29 +0000
commit00ae1a2f02adf120d996caf5657c901436614037 (patch)
tree52195a4d77b3145cda3dfe5c71878958970ae993
parentffbaccae029ac238972e3814967260f029b6058a (diff)
Apply temporary work around to fix llvm mis-compilation
reported in PR 1556. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40133 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 792d615363..564b98165d 100644
--- a/lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -3872,7 +3872,9 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
}
// (V1 & V3)|(V2 & ~V3) -> ((V1 ^ V2) & V3) ^ V2
- if (isOnlyUse(Op0) && isOnlyUse(Op1)) {
+ // Disable this transformations temporarily. This causes
+ // mis-compilation when V2 is undefined.
+ if (0 && isOnlyUse(Op0) && isOnlyUse(Op1)) {
// Try all combination of terms to find V3 and ~V3.
if (A->hasOneUse() && match(A, m_Not(m_Value(V3)))) {
if (V3 == B)