HomePhabricator

[AMDGPU] Restrict immediate scratch offsets

Authored by sebastian-ne on May 3 2021, 1:14 AM.

Description

[AMDGPU] Restrict immediate scratch offsets

gfx9 does not work with negative offsets, gfx10 works only with
aligned negative offsets, but not with unaligned negative offsets.

This is slightly more conservative than needed, gfx9 does support
negative offsets when a VGPR address is used and gfx10 supports
negative, unaligned offsets when an SGPR address is used, but we
do not make use of that with this patch.

Differential Revision: https://reviews.llvm.org/D101292

Details

Committed
sebastian-neMay 7 2021, 5:51 AM
Differential Revision
D101292: [AMDGPU] Restrict immediate scratch offsets
Parents
rG606d4e806192: AMDGPU: Correct const_index_stride for wave 32 for PAL ABI
Branches
Unknown
Tags
Unknown