This is an archive of the discontinued LLVM Phabricator instance.

[GlobalISel] Enable usage of BranchProbabilityInfo in IRTranslator
ClosedPublic

Authored by aemerson on Aug 28 2020, 4:30 PM.

Details

Summary

We weren't using this before, so none of the MachineFunction CFG edges had the branch probability information added. As a result, block placement later in the pipeline was flying blind.

This is enabled only with optimizations enabled like SelectionDAG.

Diff Detail

Event Timeline

aemerson created this revision.Aug 28 2020, 4:30 PM
aemerson requested review of this revision.Aug 28 2020, 4:30 PM
arsenm accepted this revision.Aug 28 2020, 4:31 PM
arsenm added inline comments.
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
2922–2927

Ternary operator?

This revision is now accepted and ready to land.Aug 28 2020, 4:31 PM
This revision was landed with ongoing or failed builds.Sep 9 2020, 2:31 PM
This revision was automatically updated to reflect the committed changes.