[llvm-commits] [llvm] r168445 - /llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h

Preston Briggs preston.briggs at gmail.com
Wed Nov 21 10:53:19 PST 2012


Author: prestonbriggs
Date: Wed Nov 21 12:53:19 2012
New Revision: 168445

URL: http://llvm.org/viewvc/llvm-project?rev=168445&view=rev
Log:
test commit: added a few comments

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

Modified: llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h?rev=168445&r1=168444&r2=168445&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h (original)
+++ llvm/trunk/include/llvm/Analysis/DependenceAnalysis.h Wed Nov 21 12:53:19 2012
@@ -18,6 +18,16 @@
 // of memory references in a function, returning either NULL, for no dependence,
 // or a more-or-less detailed description of the dependence between them.
 //
+// This pass exists to support the DependenceGraph pass. There are two separate
+// passes because there's a useful separation of concerns. A dependence exists
+// if two conditions are met:
+//
+//    1) Two instructions reference the same memory location, and
+//    2) There is a flow of control leading from one instruction to the other.
+//
+// DependenceAnalysis attacks the first condition; DependenceGraph will attack
+// the second (it's not yet ready).
+//
 // Please note that this is work in progress and the interface is subject to
 // change.
 //





More information about the llvm-commits mailing list