[PATCH] D30633: [BPI] Reduce the probability of unreachable edge to minimal value greater than 0

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 17 03:19:39 PDT 2017


skatkov added a comment.

BTW, one of the possible another solution might be to change MachineBlockPlacement pass to use frequency of exit block:
change
BlockFrequency ExitEdgeFreq = MBFI->getBlockFreq(MBB) * SuccProb;
to
BlockFrequency ExitEdgeFreq = MBFI->getBlockFreq(Succ);
In this case the hottest exit will be chosen basing on frequency of exit block...


https://reviews.llvm.org/D30633





More information about the llvm-commits mailing list