Instead of add and mul instructions, use v_mad, v_mac or v_fma if fma
instructions are faster and are legal for the given architecture.
Combiner for a case that has a fma/fmad instruction as an operand for
the given MI. The transformed instruction has a fma/fmad instruction
inside another fma/fmad instruction.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Put back the accidentally deleted combiner from the list of combiners (load_or_combine).
Comment Actions
Use m_MInstr instead of m_Reg in matching patterns (mi_match).
Use CanReassociate as a parameter in canCombineFMadOrFMA with a default value.
Formatting and refactoring.
Comment Actions
LGTM (with a nit)
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp | ||
---|---|---|
4983–4987 | use hasMoreUses |
use hasMoreUses