Improve comment
authorChris Lattner <sabre@nondot.org>
Sun, 31 Oct 2004 19:57:43 +0000 (19:57 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 31 Oct 2004 19:57:43 +0000 (19:57 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17375 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/DataStructure.cpp

index 60aa7666631b4f47388cc4448e2957cb68cdd00b..179f286378f497457d991c77d17ea558bbd47d0a 100644 (file)
@@ -1988,8 +1988,10 @@ void DSGraph::AssertGraphOK() const {
 }
 
 /// computeNodeMapping - Given roots in two different DSGraphs, traverse the
-/// nodes reachable from the two graphs, computing the mapping of nodes from
-/// the first to the second graph.
+/// nodes reachable from the two graphs, computing the mapping of nodes from the
+/// first to the second graph.  This mapping may be many-to-one (i.e. the first
+/// graph may have multiple nodes representing one node in the second graph),
+/// but it will not work if there is a one-to-many or many-to-many mapping.
 ///
 void DSGraph::computeNodeMapping(const DSNodeHandle &NH1,
                                  const DSNodeHandle &NH2, NodeMapTy &NodeMap,