When fcanonicalize is lowered to a mul, we can
use -1.0 for free and avoid the cost of the bigger
encoding for source modifers.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D49977
AMDGPU: Reduce code size with fcanonicalize (fneg x) ClosedPublic Authored by arsenm on Jul 30 2018, 4:08 AM.
Details
Diff Detail Event TimelineHerald added subscribers: t-tye, tpr, dstuttard and 4 others. · View Herald TranscriptJul 30 2018, 4:08 AM This revision is now accepted and ready to land.Jul 30 2018, 4:36 AM
Revision Contents
Diff 157939 lib/Target/AMDGPU/AMDGPUInstructions.td
lib/Target/AMDGPU/SIInstructions.td
test/CodeGen/AMDGPU/fcanonicalize-elimination.ll
test/CodeGen/AMDGPU/fcanonicalize.f16.ll
test/CodeGen/AMDGPU/fcanonicalize.ll
test/CodeGen/AMDGPU/fneg-combines.ll
|