add an accessor method, patch by John McCall!
llvm-svn: 68684
This commit is contained in:
parent
f9f9420303
commit
fc8b2b9ff9
|
|
@ -163,6 +163,13 @@ public:
|
||||||
/// lattice, not when querying it.
|
/// lattice, not when querying it.
|
||||||
bool isEdgeFeasible(BasicBlock *From, BasicBlock *To,
|
bool isEdgeFeasible(BasicBlock *From, BasicBlock *To,
|
||||||
bool AggressiveUndef = false);
|
bool AggressiveUndef = false);
|
||||||
|
|
||||||
|
/// isBlockExecutable - Return true if there are any known feasible
|
||||||
|
/// edges into the basic block. This is generally only useful when
|
||||||
|
/// querying the lattice.
|
||||||
|
bool isBlockExecutable(BasicBlock *BB) const {
|
||||||
|
return BBExecutable.count(BB);
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
/// UpdateState - When the state for some instruction is potentially updated,
|
/// UpdateState - When the state for some instruction is potentially updated,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue