[PATCH] D144956: Fix VGPR + offset Scratch offset folding
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 28 05:18:02 PST 2023
arsenm added inline comments.
================
Comment at: llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp:1536-1537
if (TII->isLegalFLATOffset(COffsetVal, AS, FlatVariant)) {
- Addr = N0;
- OffsetVal = COffsetVal;
+ // When value in 32-bit VGPR base can be negative calculate scratch
+ // offset using 32-bit add instruction,
+ // otherwise use vgpr base(unsigned) + offset.
----------------
But the offsets are negative for scratch and global, isLegalFLATOffset should have accounted for this
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144956/new/
https://reviews.llvm.org/D144956
More information about the llvm-commits
mailing list