AMDGPU: Try to select fmul by power of 2 to ldexp
For the f64 case, this gives us a cheaper to materialize 32-bit constant. It's less obviously a win for f32 and f16. It forces us to use a VOP3 encoding so it's a neutral code size change. GlobalISel cases don't work because of the constant-is-copy-to-vgpr problem. https://reviews.llvm.org/D157111
parent
c8a4f2a8
Please register or sign in to comment