[llvm] r328560 - [InstCombine] improve code comment; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 26 10:52:02 PDT 2018


Author: spatel
Date: Mon Mar 26 10:52:02 2018
New Revision: 328560

URL: http://llvm.org/viewvc/llvm-project?rev=328560&view=rev
Log:
[InstCombine] improve code comment; NFC

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=328560&r1=328559&r2=328560&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Mon Mar 26 10:52:02 2018
@@ -514,8 +514,8 @@ Instruction *InstCombiner::visitFMul(Bin
         return BinaryOperator::CreateFDivFMF(X, C1DivC, &I);
     }
 
-    // 'fadd C, X' and 'fsub X, C' are canonicalized to these patterns, so we do
-    // not need to match those. Distributing the multiply may allow further
+    // We do not need to match 'fadd C, X' and 'fsub X, C' because they are
+    // canonicalized to 'fadd X, C'. Distributing the multiply may allow further
     // folds and (X * C) + C2 is 'fma'.
     if (match(Op0, m_OneUse(m_FAdd(m_Value(X), m_Constant(C1))))) {
       // (X + C1) * C --> (X * C) + (C * C1)




More information about the llvm-commits mailing list