OSDN Git Service

[BPI] Refactor post domination calculation and simple fix for ColdCall
authorSerguei Katkov <serguei.katkov@azul.com>
Wed, 12 Apr 2017 05:42:14 +0000 (05:42 +0000)
committerSerguei Katkov <serguei.katkov@azul.com>
Wed, 12 Apr 2017 05:42:14 +0000 (05:42 +0000)
commit4f5f4e9e2a6dd3de9e7fb36047cdd3ab72ace5af
tree1429562927d9afba52a705aa4063743105aa2bea
parent81e9372c9e306054faa0dba7ec9e1ba7459e457b
[BPI] Refactor post domination calculation and simple fix for ColdCall

Collection of PostDominatedByUnreachable and PostDominatedByColdCall have been
split out of heuristics itself. Update of the data happens now for each basic
block (before update for PostDominatedByColdCall might be skipped if
unreachable or matadata heuristic handled this basic block).

This separation allows re-ordering of heuristics without loosing
the post-domination information.

Reviewers: sanjoy, junbuml, vsk, chandlerc, reames

Reviewed By: chandlerc

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300029 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BranchProbabilityInfo.h
lib/Analysis/BranchProbabilityInfo.cpp
test/Analysis/BranchProbabilityInfo/basic.ll