This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Error in SIAnnotateControlFlow instead of assert
ClosedPublic

Authored by arsenm on Jan 9 2018, 8:08 AM.

Details

Reviewers
rampitec
cfang
Summary

This assert typically happens if an unstructured CFG is passed
to the pass. This can happen if the pass is run independently
without the structurizer.

Diff Detail

Event Timeline

arsenm created this revision.Jan 9 2018, 8:08 AM
cfang added inline comments.Jan 9 2018, 8:53 AM
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
428

Does the annotation pass have the requirement of structurized CFG? I remember that there is an OpenMP
code with a conditional branch to a block with a unreachable instruction. Is that CFG unstructurized?

arsenm added inline comments.Jan 9 2018, 9:11 AM
lib/Target/AMDGPU/SIAnnotateControlFlow.cpp
428

Yes, the structurizer is a separate pass

cfang accepted this revision.Jan 9 2018, 9:14 AM

LGTM

This revision is now accepted and ready to land.Jan 9 2018, 9:14 AM
arsenm closed this revision.Jan 31 2018, 2:58 PM

r322685