[all-commits] [llvm/llvm-project] 22a323: [AMDGPU] Select v_lshl_add_u32 instead of v_mul_lo...

sstipanovic via All-commits all-commits at lists.llvm.org
Mon Nov 6 05:52:40 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 22a323e3db0cad736b2e793dd8143195fd9c0fc0
      https://github.com/llvm/llvm-project/commit/22a323e3db0cad736b2e793dd8143195fd9c0fc0
  Author: sstipanovic <146831748+sstipanovic at users.noreply.github.com>
  Date:   2023-11-06 (Mon, 06 Nov 2023)

  Changed paths:
    M llvm/lib/Target/AMDGPU/VOP3Instructions.td
    M llvm/test/CodeGen/AMDGPU/mul.ll
    M llvm/test/CodeGen/AMDGPU/vgpr-liverange-ir.ll
    M llvm/test/CodeGen/AMDGPU/vgpr-liverange.ll
    M llvm/test/CodeGen/AMDGPU/wqm.ll

  Log Message:
  -----------
  [AMDGPU] Select v_lshl_add_u32 instead of v_mul_lo_u32 by constant (#71035)

Instead of: v_mul_lo_u32 v0, v0, 5 we should generate: v_lshl_add_u32
v0, v0, 2, v0.




More information about the All-commits mailing list