From: Sanjay Patel Date: Thu, 2 Oct 2014 15:20:45 +0000 (+0000) Subject: Use the local variable that other clauses around here are already using. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dafb357bb54662cb350491926bdb59604969bc1d;p=oota-llvm.git Use the local variable that other clauses around here are already using. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218876 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp index d2d94e82197..da5d00dd9a1 100644 --- a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp +++ b/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;