[PATCH] D76585: [PowerPC] Require NSZ flag for c-a*b to FNMSUB
Qing Shan Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 20 18:15:24 PDT 2020
steven.zhang added inline comments.
================
Comment at: llvm/lib/Target/PowerPC/PPCISelLowering.cpp:16242
+ // (fnmsub (fneg a) b c) => (fma a b c)
+ if (SDValue NegN0 = getCheaperNegatedExpression(N0, DAG, LegalOps, CodeSize))
+ return DAG.getNode(InvertOpCode(Opc), Loc, VT, NegN0, N1, N2, Flags);
----------------
Can we move all these logic into getNegatedExpression so that more opportunity will be found?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76585/new/
https://reviews.llvm.org/D76585
More information about the llvm-commits
mailing list