[llvm-commits] [llvm] r68684 - /llvm/trunk/include/llvm/Analysis/SparsePropagation.h

Chris Lattner sabre at nondot.org
Wed Apr 8 22:56:58 PDT 2009


Author: lattner
Date: Thu Apr  9 00:56:58 2009
New Revision: 68684

URL: http://llvm.org/viewvc/llvm-project?rev=68684&view=rev
Log:
add an accessor method, patch by John McCall!

Modified:
    llvm/trunk/include/llvm/Analysis/SparsePropagation.h

Modified: llvm/trunk/include/llvm/Analysis/SparsePropagation.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/SparsePropagation.h?rev=68684&r1=68683&r2=68684&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Analysis/SparsePropagation.h (original)
+++ llvm/trunk/include/llvm/Analysis/SparsePropagation.h Thu Apr  9 00:56:58 2009
@@ -163,6 +163,13 @@
   /// 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,





More information about the llvm-commits mailing list