This is an archive of the discontinued LLVM Phabricator instance.

[IfConversion] Only renormalize probabilities if branches are analyzable
ClosedPublic

Authored by kparzysz on Mar 2 2017, 3:01 PM.

Details

Summary

If a block has non-analyzable branches, the listed successors don't need to add up to one. For example, if a block has a conditional tail call, that tail call will not have a corresponding successor in the successor list, but will still be a possible branch.

Diff Detail

Repository
rL LLVM

Event Timeline

kparzysz created this revision.Mar 2 2017, 3:01 PM
kparzysz added a subscriber: MatzeB.
iteratee accepted this revision.Mar 6 2017, 11:13 AM
This revision is now accepted and ready to land.Mar 6 2017, 11:13 AM
This revision was automatically updated to reflect the committed changes.