summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-01-30 18:24:20 +0000
committerDuncan Sands <baldrick@free.fr>2011-01-30 18:24:20 +0000
commit2e5a58da8ff09582bfa229aef5d54f409a2069e3 (patch)
treedbe4ba4965311ccafd1b787eafcf6bb933afe7b8 /llvm/lib/Analysis
parentb67edc6a2910034aaadc1b8db75f667cdbf3a11d (diff)
downloadbcm5719-llvm-2e5a58da8ff09582bfa229aef5d54f409a2069e3.tar.gz
bcm5719-llvm-2e5a58da8ff09582bfa229aef5d54f409a2069e3.zip
Commit 124487 broke 254.gap. See if disabling the part that might be triggered
by PR9088 fixes things. llvm-svn: 124561
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/InstructionSimplify.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Analysis/InstructionSimplify.cpp b/llvm/lib/Analysis/InstructionSimplify.cpp
index fcbc6d50eeb..a907150b9a2 100644
--- a/llvm/lib/Analysis/InstructionSimplify.cpp
+++ b/llvm/lib/Analysis/InstructionSimplify.cpp
@@ -804,11 +804,11 @@ static Value *SimplifyDiv(unsigned Opcode, Value *Op0, Value *Op1,
Value *X = 0, *Y = 0;
if (match(Op0, m_Mul(m_Value(X), m_Value(Y))) && (X == Op1 || Y == Op1)) {
if (Y != Op1) std::swap(X, Y); // Ensure expression is (X * Y) / Y, Y = Op1
- BinaryOperator *Mul = cast<BinaryOperator>(Op0);
- // If the Mul knows it does not overflow, then we are good to go.
- if ((isSigned && Mul->hasNoSignedWrap()) ||
- (!isSigned && Mul->hasNoUnsignedWrap()))
- return X;
+// BinaryOperator *Mul = cast<BinaryOperator>(Op0);
+// // If the Mul knows it does not overflow, then we are good to go.
+// if ((isSigned && Mul->hasNoSignedWrap()) ||
+// (!isSigned && Mul->hasNoUnsignedWrap()))
+// return X;
// If X has the form X = A / Y then X * Y cannot overflow.
if (BinaryOperator *Div = dyn_cast<BinaryOperator>(X))
if (Div->getOpcode() == Opcode && Div->getOperand(1) == Y)
OpenPOWER on IntegriCloud