[PATCH] D114643: [AMDGPU] Aggressively fold immediates in SIFoldOperands
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 16 08:58:39 PDT 2022
foad added inline comments.
================
Comment at: llvm/test/CodeGen/AMDGPU/madak.ll:52-53
; GFX6_8_9-DAG: v_madak_f32 {{v[0-9]+}}, [[VA]], [[VB]], 0x41200000
-; GFX10-MAD-DAG:v_madak_f32 {{v[0-9]+}}, [[VA]], [[VB]], 0x41200000
-; FMA-DAG: v_fmaak_f32 {{v[0-9]+}}, [[VA]], [[VB]], 0x41200000
+; GFX10-MAD-DAG:v_mad_f32 {{v[0-9]+}}, [[VA]], [[VB]], 0x41200000
+; FMA-DAG: v_fma_f32 {{v[0-9]+}}, [[VA]], [[VB]], 0x41200000
; MAD-DAG: v_mac_f32_e32 [[VK]], [[VA]], [[VC]]
----------------
foad wrote:
> Regression here: we are no longer forming madak/fmaak instructions. I think this is just bad luck. madak/fmaak formation is only implemented when PeepholeOptimizer calls SIInstrInfo::FoldImmediate. I think it would be much more reliable to do it as part of SIFoldOperands / SIShrinkInstructions.
The regression got fixed by D125567.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114643/new/
https://reviews.llvm.org/D114643
More information about the llvm-commits
mailing list