FMA is canonicalized to constant in the middle operand. Do
the same so fmad matches and avoid an extra combine step.
Details
Details
- Reviewers
• tstellarAMD nhaehnle
Diff Detail
Diff Detail
Paths
| Differential D27905
AMDGPU: Swap order of operands in fadd/fsub combine
ClosedPublic Authored by arsenm on Dec 18 2016, 1:51 PM.
Details
Summary FMA is canonicalized to constant in the middle operand. Do
Diff Detail Event Timelinearsenm updated this object. This revision is now accepted and ready to land.Dec 19 2016, 2:21 PM
Revision Contents
Diff 81892 lib/Target/AMDGPU/SIISelLowering.cpp
test/CodeGen/AMDGPU/fmul-2-combine-multi-use.ll
test/CodeGen/AMDGPU/fmuladd.f16.ll
test/CodeGen/AMDGPU/fmuladd.f32.ll
|