Instead of sub 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 one multiplication, which gets negated, and
from that the third argument is subtracted. This combiner will transform
that into two negations and one fma/fmad instruction.
Details
Details
Diff Detail
Diff Detail
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).
Instead of getting MachineInstr's, get only the Register values (no need for MachineInstr in this case).
Formatting and refactoring.