This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU] Fix SIPostRABundler crash on null register used by dbg value
ClosedPublic

Authored by rampitec on Nov 18 2021, 3:53 PM.

Details

Summary

Recently we started generate DBG_VALUEs with $noreg operands.
This crashes SIPostRABundler, and it should not iterate these
registers anyway.

Fixes: SWDEV-311733

Diff Detail

Event Timeline

rampitec created this revision.Nov 18 2021, 3:53 PM
rampitec requested review of this revision.Nov 18 2021, 3:53 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 18 2021, 3:53 PM
Herald added a subscriber: wdng. · View Herald Transcript
arsenm added inline comments.Nov 18 2021, 4:05 PM
llvm/lib/Target/AMDGPU/SIPostRABundler.cpp
93

This allows all meta instructions in the bundle region. Should it skip all of them?

rampitec added inline comments.Nov 18 2021, 4:10 PM
llvm/lib/Target/AMDGPU/SIPostRABundler.cpp
93

I do not think so. This a least handles KILL which is also meta.

rampitec edited the summary of this revision. (Show Details)Nov 18 2021, 4:17 PM
kerbowa accepted this revision.Nov 18 2021, 4:52 PM

LGTM

This revision is now accepted and ready to land.Nov 18 2021, 4:52 PM