[all-commits] [llvm/llvm-project] f99f6e: [AMDGPU] Fix scratch address materialization in SV...
Anshil Gandhi via All-commits
all-commits at lists.llvm.org
Thu Jul 9 22:30:42 PDT 2026
Branch: refs/heads/users/gandhi56/fix-scratch-svs-fi
Home: https://github.com/llvm/llvm-project
Commit: f99f6e4dbd1cc3b1c2b2d8fc80b21d79cdecdd02
https://github.com/llvm/llvm-project/commit/f99f6e4dbd1cc3b1c2b2d8fc80b21d79cdecdd02
Author: Anshil Gandhi <Anshil.Gandhi at amd.com>
Date: 2026-07-10 (Fri, 10 Jul 2026)
Changed paths:
M llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
Log Message:
-----------
[AMDGPU] Fix scratch address materialization in SVS frame index fallback
The flat scratch SVS frame index fallback folded the offset in with
V_ADD_U32_e32 writing into FrameReg (an SGPR, an illegal VALU destination)
and added it to FrameReg instead of the scavenged VGPR used as vaddr, so the
offset never reached the address.
Materialize FrameReg + Offset into the scavenged VGPR instead, or just the
offset when there is no frame register.
NFC in practice: for flat scratch an SGPR saddr is always legal, so the
fallback is only entered with no frame register, where the behavior is
unchanged. The FrameReg != 0 path is currently unreachable.
Co-authored-by: Cursor <cursoragent at cursor.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