mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Add an isReachableFromEntry to MachineDominators, following the one
in Dominators. llvm-svn: 100454
This commit is contained in:
parent
899c498b79
commit
fab42b8e7b
@ -157,6 +157,11 @@ public:
|
|||||||
DT->splitBlock(NewBB);
|
DT->splitBlock(NewBB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// isReachableFromEntry - Return true if A is dominated by the entry
|
||||||
|
/// block of the function containing it.
|
||||||
|
bool isReachableFromEntry(MachineBasicBlock *A) {
|
||||||
|
return DT->isReachableFromEntry(A);
|
||||||
|
}
|
||||||
|
|
||||||
virtual void releaseMemory();
|
virtual void releaseMemory();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user