[llvm] [AMDGPU] Folding imm offset in more cases for scratch access (PR #70634)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 6 23:52:05 PST 2023
================
@@ -1886,7 +1899,8 @@ bool AMDGPUDAGToDAGISel::SelectScratchSVAddr(SDNode *N, SDValue Addr,
return false;
}
- if (!isFlatScratchBaseLegal(SAddr) || !isFlatScratchBaseLegal(VAddr))
+ if (!isFlatScratchBaseLegal(Addr, SAddr) ||
----------------
ruiling wrote:
@petar-avramovic should probably know about some details as the logic was introduced by him.
https://github.com/llvm/llvm-project/pull/70634
More information about the llvm-commits
mailing list