diff options
author | Sanjay Patel <spatel@rotateright.com> | 2018-03-26 17:52:02 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2018-03-26 17:52:02 +0000 |
commit | 0e3167cb3095b92fb1c5db9003eac6bda0f07e0d (patch) | |
tree | 38cb9fa908fddd256ab93cc77e0a50d40703f626 /llvm/lib/Transforms | |
parent | c65ae14766f0802fd33d4fa9c1b2a41a2ad1c412 (diff) | |
download | bcm5719-llvm-0e3167cb3095b92fb1c5db9003eac6bda0f07e0d.tar.gz bcm5719-llvm-0e3167cb3095b92fb1c5db9003eac6bda0f07e0d.zip |
[InstCombine] improve code comment; NFC
llvm-svn: 328560
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp index c6cb8088bc3..a2f993e4b69 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp @@ -514,8 +514,8 @@ Instruction *InstCombiner::visitFMul(BinaryOperator &I) { 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) |