[PATCH] D15489: Use getEdgeProbability() instead of getEdgeWeight() in BFI and remove getEdgeWeight() interfaces from MBPI.

Dehao Chen via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 15 10:22:59 PST 2015


danielcdh added a comment.

For the following CFG:

BB1(weight:100)
BB2(weight:1000)
BB3(weight:100)

BB1->BB2(probability: 0%)
BB1->BB3(probability: 100%)
BB2->BB2(probability: 100%)
BB2->BB3(probability: 0%)

Is there a way we can rebuild BB weights from probability?
Dehao


http://reviews.llvm.org/D15489





More information about the llvm-commits mailing list