[PATCH] D65898: [InstCombine] x /c fabs(x) -> copysign(1.0, x)
Dávid Bolvanský via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 07:39:54 PDT 2019
xbolva00 marked 2 inline comments as done.
xbolva00 added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:1246
+ if (I.hasNoNaNs() && I.hasNoInfs() &&
+ match(Op0, m_Intrinsic<Intrinsic::fabs>(m_Specific(Op1)))) {
+ Value *V = Builder.CreateBinaryIntrinsic(
----------------
I tried
match(&I, m_FDiv(m_Value(X), m_Intrinsic<Intrinsic::fabs>(m_Specific(X)))) and it failed to match.. uh.
(this blocked me to possibly introduce m_c_FDiv)
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65898/new/
https://reviews.llvm.org/D65898
More information about the llvm-commits
mailing list