mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 05:01:59 +01:00
Make sure noone branches to the entry node of the method
llvm-svn: 369
This commit is contained in:
parent
e29ed4849f
commit
a6357a1101
@ -53,6 +53,7 @@ cfg::DominatorSet::DominatorSet(const Method *M) : DominatorBase(M->front()) {
|
|||||||
//
|
//
|
||||||
void cfg::DominatorSet::calcForwardDominatorSet(const Method *M) {
|
void cfg::DominatorSet::calcForwardDominatorSet(const Method *M) {
|
||||||
assert(Root && M && "Can't build dominator set of null method!");
|
assert(Root && M && "Can't build dominator set of null method!");
|
||||||
|
assert(Root->use_size() == 0 && "Root node has predecessors in method!");
|
||||||
bool Changed;
|
bool Changed;
|
||||||
do {
|
do {
|
||||||
Changed = false;
|
Changed = false;
|
||||||
|
@ -53,6 +53,7 @@ cfg::DominatorSet::DominatorSet(const Method *M) : DominatorBase(M->front()) {
|
|||||||
//
|
//
|
||||||
void cfg::DominatorSet::calcForwardDominatorSet(const Method *M) {
|
void cfg::DominatorSet::calcForwardDominatorSet(const Method *M) {
|
||||||
assert(Root && M && "Can't build dominator set of null method!");
|
assert(Root && M && "Can't build dominator set of null method!");
|
||||||
|
assert(Root->use_size() == 0 && "Root node has predecessors in method!");
|
||||||
bool Changed;
|
bool Changed;
|
||||||
do {
|
do {
|
||||||
Changed = false;
|
Changed = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user