Fix grammar in Stacker doc description.
[oota-llvm.git] / docs / AliasAnalysis.html
index 01492293eef1be8bd531f60ee6b861ed954c0b77..f1dbf86ffb6018a72d98ab95157fcf9cab2eaf04 100644 (file)
@@ -2,13 +2,13 @@
                       "http://www.w3.org/TR/html4/strict.dtd">
 <html>
 <head>
-  <title>The LLVM Alias Analysis Infrastructure</title>
+  <title>LLVM Alias Analysis Infrastructure</title>
   <link rel="stylesheet" href="llvm.css" type="text/css">
 </head>
 <body>
 
 <div class="doc_title">
-  The LLVM Alias Analysis Infrastructure
+  LLVM Alias Analysis Infrastructure
 </div>
 
 <ol>
@@ -46,7 +46,8 @@
     <ul>
     <li><a href="#impls">Available <tt>AliasAnalysis</tt> implementations</a></li>
     <li><a href="#aliasanalysis-xforms">Alias analysis driven transformations</a></li>
-    <li><a href="#aliasanalysis-debug">Clients for debugging and evaluation of implementations</a></li>
+    <li><a href="#aliasanalysis-debug">Clients for debugging and evaluation of
+    implementations</a></li>
     </ul>
   </li>
 </ol>
@@ -690,6 +691,27 @@ aggressive local analysis that "knows" many important facts:</p>
 
 </div>
 
+<!-- _______________________________________________________________________ -->
+<div class="doc_subsubsection">
+  <a name="globalsmodref">The <tt>-globalsmodref-aa</tt> pass</a>
+</div>
+
+<div class="doc_text">
+
+<p>This pass implements a simple context-sensitive mod/ref and alias analysis
+for internal global variables that don't "have their address taken".  If a 
+global does not have its address taken, the pass knows that no pointers alias 
+the global.
+</p>
+
+<p>The real power of this pass is that it provides context-sensitive mod/ref 
+information for call instructions.  This allows the optimizer to know that 
+calls to a function do not clobber or read the value of the global, allowing 
+loads and stores to be eliminated.</p>
+
+<p>Note that this pass is somewhat limited in its scope (only support 
+non-address taken globals), but is very quick analysis.</p>
+</div>
 
 <!-- _______________________________________________________________________ -->
 <div class="doc_subsubsection">