[PATCH] D43090: GlobalISel: IRTranslate llvm.fmuladd.* intrinsic
Quentin Colombet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 9 11:28:00 PST 2018
qcolombet added inline comments.
================
Comment at: lib/CodeGen/GlobalISel/IRTranslator.cpp:765
+ TLI.isFMAFasterThanFMulAndFAdd(TLI.getValueType(*DL, CI.getType()))) {
+ MIRBuilder.buildInstr(TargetOpcode::G_FMA, Dst, Op0, Op1, Op2);
+ } else {
----------------
So far we stayed away of "optimizations" in the IRTranslator.
I wonder if this part of the lowering should be part of a combiner instead.
In particular, the language reference says:
Fusion is not guaranteed, even if the target platform supports it.
What do you think?
https://reviews.llvm.org/D43090
More information about the llvm-commits
mailing list