[llvm] r218876 - Use the local variable that other clauses around here are already using.

Sanjay Patel spatel at rotateright.com
Thu Oct 2 08:20:45 PDT 2014


Author: spatel
Date: Thu Oct  2 10:20:45 2014
New Revision: 218876

URL: http://llvm.org/viewvc/llvm-project?rev=218876&view=rev
Log:
Use the local variable that other clauses around here are already using.

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp?rev=218876&r1=218875&r2=218876&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Thu Oct  2 10:20:45 2014
@@ -534,7 +534,7 @@ Instruction *InstCombiner::visitFMul(Bin
 
   // 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;





More information about the llvm-commits mailing list