[PATCH] D111638: [AArch64][SVE] Combine predicated FMUL/FADD into FMA
Peter Waller via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 13 09:16:35 PDT 2021
peterwaller-arm added inline comments.
================
Comment at: llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp:724
+ llvm::FastMathFlags flags = II.getFastMathFlags();
+ flags &= FMulInst->getFastMathFlags();
+
----------------
peterwaller-arm wrote:
> It seems to me that a check is needed if the fast math flags contain 'contract', and if not, bailout.
Please also check that the flags are equal instead of taking their intersection. The fadd might plausibly have a flag which allows more aggressive optimization and contracting it in this way may prevent those optimizations from taking place.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111638/new/
https://reviews.llvm.org/D111638
More information about the llvm-commits
mailing list