[all-commits] [llvm/llvm-project] 68468b: AMDGPU: Avoid null check during addrspacecast lowe...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Mon Jan 10 10:27:51 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 68468bbe15d568550b4a20bc24010caae1bc469a
      https://github.com/llvm/llvm-project/commit/68468bbe15d568550b4a20bc24010caae1bc469a
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2022-01-10 (Mon, 10 Jan 2022)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/lib/Target/AMDGPU/SIISelLowering.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-addrspacecast.mir
    A llvm/test/CodeGen/AMDGPU/addrspacecast-known-non-null.ll
    M llvm/test/CodeGen/AMDGPU/flat-scratch-init.ll

  Log Message:
  -----------
  AMDGPU: Avoid null check during addrspacecast lowering

If we know the source is a valid object, we do not need to insert a
null check. This misses a lot of opportunities from
metadata/attributes not tracked in codegen.




More information about the All-commits mailing list