This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Make frame register caller preserved
ClosedPublic

Authored by arsenm on Sep 13 2017, 4:52 PM.

Details

Reviewers
rampitec
Summary

Using SplitCSR for the frame register was very broken. Often
the copies in the prolog and epilog were optimized out, in addition
to them being inserted after the true prolog where the FP
was clobbered.

I have a hacky solution which works that continues to use
split CSR, but for now this is simpler and will get to working
programs.

Diff Detail

Event Timeline

arsenm created this revision.Sep 13 2017, 4:52 PM
rampitec edited edge metadata.Sep 14 2017, 8:48 AM

Please add a comment to the source why it was needed.

arsenm updated this revision to Diff 115234.Sep 14 2017, 9:41 AM

Add comment

This revision is now accepted and ready to land.Sep 14 2017, 9:58 AM
arsenm closed this revision.Sep 14 2017, 10:16 AM

r313274