[AMDGPU] Use V_FMA_MIX* more often
authorMateja Marjanovic <mmarjano@amd.com>
Thu, 13 Jul 2023 09:37:35 +0000 (11:37 +0200)
committerMateja Marjanovic <mmarjano@amd.com>
Thu, 13 Jul 2023 14:56:16 +0000 (16:56 +0200)
commitfa46feb3148133f4fd540c6d8f912d7980a27515
tree2598f8dfd8f1eccaed4e53cc352de43231eb4aca
parent4ea6cee22ba8d66cd1bd7a33a07670e206b89fe4
[AMDGPU] Use V_FMA_MIX* more often

Combine mul (f32) + fptrunc (f32->f16) to "v_fma_mixlo_f16 mulSrc1, mulSrc2, 0".

Differential Revision: https://reviews.llvm.org/D153544
Reviewers: arsenm, foad
llvm/lib/Target/AMDGPU/VOP3PInstructions.td
llvm/test/CodeGen/AMDGPU/GlobalISel/fdiv.f16.ll
llvm/test/CodeGen/AMDGPU/fdiv.f16.ll
llvm/test/CodeGen/AMDGPU/frem.ll
llvm/test/CodeGen/AMDGPU/mad-mix-lo.ll