[all-commits] [llvm/llvm-project] 3d9e22: [AMDGPU] Use s_cmp instead of s_cmpk

Jay Foad via All-commits all-commits at lists.llvm.org
Wed Nov 30 10:04:02 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3d9e226081cf6a908c27cedf4c0dc72380b62bb2
      https://github.com/llvm/llvm-project/commit/3d9e226081cf6a908c27cedf4c0dc72380b62bb2
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2022-11-30 (Wed, 30 Nov 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/test/CodeGen/AMDGPU/expand-scalar-carry-out-select-user.ll
    M llvm/test/CodeGen/AMDGPU/udiv.ll

  Log Message:
  -----------
  [AMDGPU] Use s_cmp instead of s_cmpk

Don't bother pre-shrinking "s_cmp_lg_u32 reg, 0" to s_cmpk_lg_u32
because 0 is already an inline constant so the s_cmpk form is no
smaller.

This is just for consistency with the surrounding code and to simplify a
downstream patch.

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




More information about the All-commits mailing list