[PATCH] D41342: [WIP][InstCombine] Missed optimization in math expression: simplify calls exp functions
Hal Finkel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 20:13:54 PST 2017
hfinkel added inline comments.
================
Comment at: lib/Transforms/InstCombine/InstCombineMulDivRem.cpp:736
+ if (match(Op0, m_Intrinsic<Intrinsic::exp>(m_Value(Opnd0))) &&
+ match(Op1, m_Intrinsic<Intrinsic::exp>(m_Value(Opnd1)))) {
+ Builder.setFastMathFlags(I.getFastMathFlags());
----------------
Also, ->hasOneUse() checks here.
https://reviews.llvm.org/D41342
More information about the llvm-commits
mailing list