This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Add flag to control mem intrinsic expansion
ClosedPublic

Authored by arsenm on Feb 3 2020, 12:14 PM.

Details

Reviewers
rampitec
kerbowa
Summary

GlobalISel doesn't implement the expansion for these yet, so add a
flag to force expanding these so it's possible to avoid these for a
while.

Diff Detail

Event Timeline

arsenm created this revision.Feb 3 2020, 12:14 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 3 2020, 12:14 PM
arsenm updated this revision to Diff 242154.Feb 3 2020, 12:18 PM

Move default value

rampitec added inline comments.Feb 3 2020, 12:29 PM
llvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
68

Why signed?

arsenm marked an inline comment as done.Feb 3 2020, 12:38 PM
arsenm added inline comments.
llvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
68

To handle using negative values with the flag

rampitec added inline comments.Feb 3 2020, 1:16 PM
llvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
68

But why do you even need it negative?

arsenm marked an inline comment as done.Feb 3 2020, 1:32 PM
arsenm added inline comments.
llvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
68

To make sure the edge case of 0 is expanded or not. It should be possible to have the 0 case expanded or not

rampitec accepted this revision.Feb 3 2020, 1:34 PM
This revision is now accepted and ready to land.Feb 3 2020, 1:34 PM