[PATCH] D133695: [InstCombine] Optimize multiplication where both operands are negated
Francis Visoiu Mistrih via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 12 09:29:21 PDT 2022
thegameg added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp:1837
+ Value *Op1 = II->getArgOperand(1);
+ if (match(Op0, m_FNeg(m_Value())) && match(Op1, m_FNeg(m_Value()))) {
+ Value *Op0NotNeg = cast<Instruction>(Op0)->getOperand(0);
----------------
Do we need to handle integers too? (`m_Neg`)
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133695/new/
https://reviews.llvm.org/D133695
More information about the llvm-commits
mailing list