[llvm] [AMDGPU] Allow negative offsets in scratch instructions (PR #166979)

Anshil Gandhi via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 3 11:08:27 PST 2025


================
@@ -334,12 +334,6 @@ def FeatureFlatSegmentOffsetBug : SubtargetFeature<"flat-segment-offset-bug",
   "GFX10 bug where inst_offset is ignored when flat instructions access global memory"
 >;
 
-def FeatureNegativeScratchOffsetBug : SubtargetFeature<"negative-scratch-offset-bug",
----------------
gandhi56 wrote:

This patch passed PSDB testing and Matt suggested to allow negative offsets. I am not sure if the bug is documented anywhere.

https://github.com/llvm/llvm-project/pull/166979


More information about the llvm-commits mailing list