This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Force skip branches over calls
ClosedPublic

Authored by arsenm on May 20 2019, 2:28 PM.

Details

Reviewers
rampitec
nhaehnle
Summary

Unfortunately the way SIInsertSkips works is backwards, and is
required for correctness. r338235 added handling of some special cases
where skipping is mandatory to avoid side effects if no lanes are
active. It conservatively handled asm correctly, but the same logic
needs to apply to calls.

Usually the call sequence code is larger than the skip threshold,
although the way the count is computed is really broken, so I'm not
sure if anything was likely to really hit this.

Diff Detail

Event Timeline

arsenm created this revision.May 20 2019, 2:28 PM
This revision is now accepted and ready to land.May 20 2019, 2:38 PM
arsenm closed this revision.May 20 2019, 3:02 PM

r361202