HomePhabricator

[CodeGen] fix broken successor probability in MBB dump

Description

[CodeGen] fix broken successor probability in MBB dump

When printing successor probabilities for a MBB, a human readable value is sometimes shown as 200.0%.
The human readable output is based on getProbabilityIterator, which returns 0xFFFFFFFF for getNumerator() and 0x80000000 for getDenominator() for unknown BranchProbability.
By using getSuccProbability as we do for the non-human readable part, we can avoid this problem.

Differential Revision: https://reviews.llvm.org/D52605

Details

Committed
inouehrsSep 27 2018, 10:27 PM
Differential Revision
D52605: [CodeGen] avoid broken successor probability in MBB dump
Parents
rL343296: Test commit. NFC.
Branches
Unknown
Tags
Unknown