[all-commits] [llvm/llvm-project] b59d8d: [AMDGPU][GlobalISel] Compute known bits for zero-e...

Jay Foad via All-commits all-commits at lists.llvm.org
Tue Oct 13 08:22:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b59d8d7c72546bf3f81889f4ce02a68c902eddd2
      https://github.com/llvm/llvm-project/commit/b59d8d7c72546bf3f81889f4ce02a68c902eddd2
  Author: Jay Foad <jay.foad at amd.com>
  Date:   2020-10-13 (Tue, 13 Oct 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.raw.buffer.load.ll
    M llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.struct.buffer.load.ll

  Log Message:
  -----------
  [AMDGPU][GlobalISel] Compute known bits for zero-extending loads

Implement computeKnownBitsForTargetInstr for G_AMDGPU_BUFFER_LOAD_UBYTE
and G_AMDGPU_BUFFER_LOAD_USHORT. This allows generic combines to remove
some unnecessary G_ANDs.

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




More information about the All-commits mailing list