[all-commits] [llvm/llvm-project] 27fa41: [AMDGPU] Shrink MAD/FMA to MADAK/MADMK/FMAAK/FMAMK...

Jay Foad via All-commits all-commits at lists.llvm.org
Mon May 16 07:26:09 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 27fa41583fdee54d40ae680408f697e6d8201a8c
      https://github.com/llvm/llvm-project/commit/27fa41583fdee54d40ae680408f697e6d8201a8c
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2022-05-16 (Mon, 16 May 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
    M llvm/test/CodeGen/AMDGPU/dagcombine-fma-fmad.ll
    M llvm/test/CodeGen/AMDGPU/madak.ll

  Log Message:
  -----------
  [AMDGPU] Shrink MAD/FMA to MADAK/MADMK/FMAAK/FMAMK on GFX10

On GFX10 VOP3 instructions can have a literal operand, so the conversion
from VOP3 MAD/FMA to VOP2 MADAK/MADMK/FMAAK/FMAMK will not happen in
SIFoldOperands. The only benefit of the VOP2 form is code size, so do it
in SIShrinkInstructions instead.

Differential Revision: https://reviews.llvm.org/D125567




More information about the All-commits mailing list