This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix assertion failure in SIInsertHardClauses
ClosedPublic

Authored by foad on May 15 2020, 6:40 AM.

Details

Summary

This new pass failed an assertion whenever there were s_nops after the
end of clause.

Diff Detail

Event Timeline

foad created this revision.May 15 2020, 6:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 15 2020, 6:40 AM
arsenm accepted this revision.May 15 2020, 7:03 AM
arsenm added inline comments.
llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp
115–116

Seems like we should be able to avoid rescanning through all the instructions though

This revision is now accepted and ready to land.May 15 2020, 7:03 AM

This fixes radeonsi on Navi 14, thanks.

Tested-by: Michel Dänzer <mdaenzer@redhat.com>
This revision was automatically updated to reflect the committed changes.
foad marked an inline comment as done.May 15 2020, 8:14 AM
foad added inline comments.
llvm/lib/Target/AMDGPU/SIInsertHardClauses.cpp
115–116

True. I may try that as a follow-up.