Select fmul x, -K -> ldexp(-x, log2(fabsK))
Select fmul fabs(x), -K -> ldexp(-|x|, log2(fabsK))
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D158173
AMDGPU: Select f64 fmul by negative power of 2 to ldexp ClosedPublic Authored by arsenm on Aug 17 2023, 4:45 AM.
Details
Diff Detail
Revision Contents
Diff 551090 llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
llvm/lib/Target/AMDGPU/SIInstructions.td
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-fmul.mir
llvm/test/CodeGen/AMDGPU/fmul-to-ldexp.ll
|