This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Fix alignment for dynamic allocas
ClosedPublic

Authored by arsenm on Jun 1 2020, 6:13 AM.

Details

Summary

The alignment value also needs to be scaled by the wave size.

Diff Detail

Event Timeline

arsenm created this revision.Jun 1 2020, 6:13 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 1 2020, 6:13 AM
madhur13490 added inline comments.
llvm/test/CodeGen/AMDGPU/non-entry-alloca.ll
98

Why is the opcode changed in assembly? you seemed to keep same DAG Opcode.

arsenm marked an inline comment as done.Jun 1 2020, 8:17 AM
arsenm added inline comments.
llvm/test/CodeGen/AMDGPU/non-entry-alloca.ll
98

The inverted constant isn't an inline immediate so it wouldn't be beneficial to change it

rampitec accepted this revision.Jun 1 2020, 9:38 AM
This revision is now accepted and ready to land.Jun 1 2020, 9:38 AM