HomePhabricator

[AMDGPU] Fix too many constants with flat scratch

Authored by sebastian-ne on Aug 19 2021, 4:55 AM.

Description

[AMDGPU] Fix too many constants with flat scratch

Prevent SIFoldOperands from creating SALU instructions with a constant
and a frame index. Previously, only one operand was checked to be a
frame index, leading to too many constants when flat scratch is enabled
and stack offsets are large.

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

Details

Committed
sebastian-neAug 19 2021, 11:21 PM
Differential Revision
D108368: [AMDGPU] Fix too many constants with flat scratch
Parents
rGfa4132dc88cf: [gn build] Port e6407356ba00
Branches
Unknown
Tags
Unknown