This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Remove code I think is dead
ClosedPublic

Authored by arsenm on Sep 6 2016, 4:51 PM.

Details

Summary

As far as I can tell, resolveFrameIndex is supposed to be
called with a legal offset, so inserting an add shouldn't be
necessary.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 70492.Sep 6 2016, 4:51 PM
arsenm retitled this revision from to AMDGPU: Remove code I think is dead.
arsenm updated this object.
arsenm added a reviewer: tstellarAMD.
arsenm added subscribers: llvm-commits, Restricted Project.

I'm not deep enough into this code to really say what's expected, but I remember changing something there because the ADD path _was_ triggered (although I'm not sure whether it was here or in materializeFrameBaseRegister or both). The offending shader is attached to the bug report at https://bugs.freedesktop.org/show_bug.cgi?id=96602, perhaps you could check if that compiles with this change?

arsenm added a comment.Sep 9 2016, 3:07 PM

I'm not deep enough into this code to really say what's expected, but I remember changing something there because the ADD path _was_ triggered (although I'm not sure whether it was here or in materializeFrameBaseRegister or both). The offending shader is attached to the bug report at https://bugs.freedesktop.org/show_bug.cgi?id=96602, perhaps you could check if that compiles with this change?

That compiles (as well as the testcase you committed with that fix)

arsenm accepted this revision.Sep 13 2016, 12:24 PM
arsenm added a reviewer: arsenm.

r281372

This revision is now accepted and ready to land.Sep 13 2016, 12:24 PM
arsenm closed this revision.Sep 13 2016, 12:24 PM