[llvm] [AMDGPU] Disallow negative s_load offsets in isLegalAddressingMode (PR #91327)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 02:22:25 PDT 2024
================
@@ -1604,6 +1604,14 @@ bool SITargetLowering::isLegalAddressingMode(const DataLayout &DL,
return false;
}
+ if (AS == AMDGPUAS::CONSTANT_ADDRESS && AM.BaseOffs < 0) {
----------------
jayfoad wrote:
> should also cover the constant_32bit
Done
https://github.com/llvm/llvm-project/pull/91327
More information about the llvm-commits
mailing list