mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-05 01:56:16 +00:00
add an accessor method, patch by John McCall!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68684 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6e2a46a0b4
commit
56946ed5bb
@ -163,6 +163,13 @@ public:
|
||||
/// lattice, not when querying it.
|
||||
bool isEdgeFeasible(BasicBlock *From, BasicBlock *To,
|
||||
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:
|
||||
/// UpdateState - When the state for some instruction is potentially updated,
|
||||
|
Loading…
x
Reference in New Issue
Block a user