HomePhabricator

[AMDGPU] Fix function calls with flat scratch

Authored by sebastian-ne on May 27 2021, 9:32 AM.

Description

[AMDGPU] Fix function calls with flat scratch

When flat scratch is used, the stack pointer needs to be added when
writing arguments to the stack.
For buffer instructions, this is done in SelectMUBUFScratchOffen
and SelectMUBUFScratchOffset.

Move that to call argument lowering, like it is done in GlobalISel.

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

Details

Committed
sebastian-neMay 28 2021, 2:22 AM
Differential Revision
D103166: [AMDGPU] Fix function calls with flat scratch
Parents
rG6133b60a27fe: [AMDGPU] Precommit test
Branches
Unknown
Tags
Unknown