[all-commits] [llvm/llvm-project] 7f2748: [AMDGPU][LowerBufferFatPointers] Fix lack of rewri...

Krzysztof Drewniak via All-commits all-commits at lists.llvm.org
Mon Aug 18 10:33:15 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f27482a32180def47c71f490501ea0e560bfa9f
      https://github.com/llvm/llvm-project/commit/7f27482a32180def47c71f490501ea0e560bfa9f
  Author: Krzysztof Drewniak <Krzysztof.Drewniak at amd.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp
    M llvm/test/CodeGen/AMDGPU/lower-buffer-fat-pointers-constants.ll

  Log Message:
  -----------
  [AMDGPU][LowerBufferFatPointers] Fix lack of rewrite when loading/storing null (#154128)

Fixes #154056.

The fat buffer lowering pass was erroniously detecting that it did not
need to run on functions that only load/store to the null constant (or
other such constants). We thought this would be covered by specializing
constants out to instructions, but that doesn't account foc trivial
constants like null. Therefore, we check the operands of instructions
for buffer fat pointers in order to find such constants and ensure the
pass runs.

---------

Co-authored-by: Nikita Popov <github at npopov.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list