Use the local variable that other clauses around here are already using.
authorSanjay Patel <spatel@rotateright.com>
Thu, 2 Oct 2014 15:20:45 +0000 (15:20 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 2 Oct 2014 15:20:45 +0000 (15:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218876 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

index d2d94e82197d9b114b95ba97959fb633dd25f519..da5d00dd9a182b5b89f9fb021a4c3d08e3f42a87 100644 (file)
@@ -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;