This is an archive of the discontinued LLVM Phabricator instance.

[PrologEpilogInserter][AMDGPU] Only adjust offset for emergency spill slots if the stack grows down
ClosedPublic

Authored by rogfer01 on Mar 29 2021, 6:51 AM.

Details

Summary

D89239 adjusts the stack offset of emergency spill slots for overaligned stacks. However the adjustment is not valid for targets whose stack grows up (such as a AMDGPU).

This change makes the adjustment conditional only to those targets whose stack grows down.

Fixes https://bugs.llvm.org/show_bug.cgi?id=49686

Diff Detail

Event Timeline

rogfer01 created this revision.Mar 29 2021, 6:51 AM
rogfer01 requested review of this revision.Mar 29 2021, 6:51 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 29 2021, 6:51 AM
sebastian-ne accepted this revision.Mar 29 2021, 6:53 AM

Thank you

This revision is now accepted and ready to land.Mar 29 2021, 6:53 AM