This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Insert skip branches over return blocks
ClosedPublic

Authored by arsenm on Jun 6 2019, 2:53 PM.

Details

Reviewers
rampitec
nhaehnle
Summary

SIInsertSkips really doesn't understand the control flow, and makes
very stupid assumptions about the block layout. This was able to get
away with not skipping return blocks, since usually after
structurization there is only one placed at the end of the
function. Tail duplication can break this assumption.

Diff Detail

Event Timeline

arsenm created this revision.Jun 6 2019, 2:53 PM
rampitec accepted this revision.Jun 6 2019, 2:59 PM

LGTM

This revision is now accepted and ready to land.Jun 6 2019, 2:59 PM
arsenm closed this revision.Jun 6 2019, 3:49 PM

r362754