From: Chris Lattner Date: Thu, 9 Apr 2009 05:56:58 +0000 (+0000) Subject: add an accessor method, patch by John McCall! X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=56946ed5bbd60fe3276a674668cbd835f8ebc772;p=oota-llvm.git 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 --- diff --git a/include/llvm/Analysis/SparsePropagation.h b/include/llvm/Analysis/SparsePropagation.h index 1e2114840ad..c75531a7e6e 100644 --- a/include/llvm/Analysis/SparsePropagation.h +++ b/include/llvm/Analysis/SparsePropagation.h @@ -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,