This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel][IRTranslator] Ensure branch probabilities are added when translating invoke edges.
ClosedPublic

Authored by aemerson on Dec 14 2020, 3:32 PM.

Details

Summary

This uses a straightforward port of findUnwindDestinations() from SelectionDAG.

Diff Detail

Event Timeline

aemerson created this revision.Dec 14 2020, 3:32 PM
aemerson requested review of this revision.Dec 14 2020, 3:32 PM
arsenm accepted this revision.Dec 14 2020, 4:50 PM

LGTM with test nits

llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-invoke-probabilities.ll
5

Don't need these

16–17

I would expect some instruction checks?

36

Don't need the attribute or metadata

This revision is now accepted and ready to land.Dec 14 2020, 4:50 PM
This revision was landed with ongoing or failed builds.Dec 14 2020, 11:37 PM
This revision was automatically updated to reflect the committed changes.