[llvm-commits] CVS: llvm/lib/VMCore/Dominators.cpp
Owen Anderson
resistor at mac.com
Sun Apr 8 21:07:57 PDT 2007
Changes in directory llvm/lib/VMCore:
Dominators.cpp updated: 1.89 -> 1.90
---
Log message:
Move isReachableFromEntry out of line to avoid an unnecessary #include
---
Diffs of the changes: (+6 -0)
Dominators.cpp | 6 ++++++
1 files changed, 6 insertions(+)
Index: llvm/lib/VMCore/Dominators.cpp
diff -u llvm/lib/VMCore/Dominators.cpp:1.89 llvm/lib/VMCore/Dominators.cpp:1.90
--- llvm/lib/VMCore/Dominators.cpp:1.89 Sun Apr 8 16:30:05 2007
+++ llvm/lib/VMCore/Dominators.cpp Sun Apr 8 23:07:36 2007
@@ -873,6 +873,12 @@
}
}
+/// isReachableFromEntry - Return true if A is dominated by the entry
+/// block of the function containing it.
+const bool ETForestBase::isReachableFromEntry(BasicBlock* A) {
+ return dominates(&A->getParent()->getEntryBlock(), A);
+}
+
ETNode *ETForest::getNodeForBlock(BasicBlock *BB) {
ETNode *&BBNode = Nodes[BB];
if (BBNode) return BBNode;
More information about the llvm-commits
mailing list