[llvm] [AMDGPU] Folding imm offset in more cases for scratch access (PR #70634)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 30 19:28:16 PDT 2023
================
@@ -1886,7 +1899,8 @@ bool AMDGPUDAGToDAGISel::SelectScratchSVAddr(SDNode *N, SDValue Addr,
return false;
}
- if (!isFlatScratchBaseLegal(SAddr) || !isFlatScratchBaseLegal(VAddr))
+ if (!isFlatScratchBaseLegal(Addr, SAddr) ||
----------------
arsenm wrote:
Does this even apply in the scratch case? I thought the signed offsets all worked correctly now?
https://github.com/llvm/llvm-project/pull/70634
More information about the llvm-commits
mailing list