[all-commits] [llvm/llvm-project] d48682: AMDGPU: Make frame index folding logic consistent ...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Tue Mar 4 18:20:48 PST 2025


  Branch: refs/heads/users/arsenm/amdgpu/make-frameIndexMayFold-consistent-eliminateFrameIndex
  Home:   https://github.com/llvm/llvm-project
  Commit: d48682d5f71d6aba3f2f60d4faf23aae37449f4a
      https://github.com/llvm/llvm-project/commit/d48682d5f71d6aba3f2f60d4faf23aae37449f4a
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-03-05 (Wed, 05 Mar 2025)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
    M llvm/test/CodeGen/AMDGPU/fold-operands-frame-index.mir
    M llvm/test/CodeGen/AMDGPU/fold-operands-s-add-copy-to-vgpr.mir
    M llvm/test/CodeGen/AMDGPU/frame-index-elimination.ll
    M llvm/test/CodeGen/AMDGPU/huge-private-buffer.ll
    M llvm/test/CodeGen/AMDGPU/local-stack-alloc-block-sp-reference.ll

  Log Message:
  -----------
  AMDGPU: Make frame index folding logic consistent with eliminateFrameIndex

This adds handling of s_add_u32, which is handled and removes handling of
s_or_b32 and s_and_b32, which are not. I was working on handling them
in #102345, but need to finish that patch. This fixes a regression
exposed by a3165398db0736588daedb07650195502592e567 where the
final instruction would use two literals.



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