[PATCH] D27906: InstCombine: Add fma + fabs/fneg transforms
David Majnemer via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 18 15:27:50 PST 2016
majnemer added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:1568-1569
+ if (match(Src0, m_FNeg(m_Value(LHS))) && match(Src1, m_FNeg(m_Value(RHS)))) {
+ CallInst *NewCall = Builder->CreateCall(II->getCalledFunction(),
+ { LHS, RHS, II->getArgOperand(2) });
+ NewCall->takeName(II);
----------------
Formatting looks weird.
================
Comment at: lib/Transforms/InstCombine/InstCombineCalls.cpp:1579-1580
+ LHS == RHS) {
+ CallInst *NewCall = Builder->CreateCall(II->getCalledFunction(),
+ { LHS, LHS, II->getArgOperand(2) });
+ NewCall->takeName(II);
----------------
Formatting looks weird.
https://reviews.llvm.org/D27906
More information about the llvm-commits
mailing list