aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2014-10-02 15:20:45 +0000
committerSanjay Patel <spatel@rotateright.com>2014-10-02 15:20:45 +0000
commitb41d46118ad13f2c398cf209aa1d17811f9885a6 (patch)
treebe356602b81c0d12c649ac3008bbb7777a79267f /llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
parent0d7dee654ddc84dae944ca38a3b5678e33b75aff (diff)
downloadllvm-b41d46118ad13f2c398cf209aa1d17811f9885a6.zip
llvm-b41d46118ad13f2c398cf209aa1d17811f9885a6.tar.gz
llvm-b41d46118ad13f2c398cf209aa1d17811f9885a6.tar.bz2
Use the local variable that other clauses around here are already using.
llvm-svn: 218876
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
index d2d94e8..da5d00d 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
@@ -534,7 +534,7 @@ Instruction *InstCombiner::visitFMul(BinaryOperator &I) {
// Under unsafe algebra do:
// X * log2(0.5*Y) = X*log2(Y) - X
- if (I.hasUnsafeAlgebra()) {
+ if (AllowReassociate) {
Value *OpX = nullptr;
Value *OpY = nullptr;
IntrinsicInst *Log2;