[llvm-commits] [llvm] r43715 - /llvm/trunk/docs/tutorial/LangImpl7.html

Chris Lattner sabre at nondot.org
Mon Nov 5 09:45:55 PST 2007


Author: lattner
Date: Mon Nov  5 11:45:54 2007
New Revision: 43715

URL: http://llvm.org/viewvc/llvm-project?rev=43715&view=rev
Log:
Dan points out that mem2reg also promotes vectors: be more precise.

Modified:
    llvm/trunk/docs/tutorial/LangImpl7.html

Modified: llvm/trunk/docs/tutorial/LangImpl7.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/tutorial/LangImpl7.html?rev=43715&r1=43714&r2=43715&view=diff

==============================================================================
--- llvm/trunk/docs/tutorial/LangImpl7.html (original)
+++ llvm/trunk/docs/tutorial/LangImpl7.html Mon Nov  5 11:45:54 2007
@@ -258,7 +258,9 @@
 the address of the stack object is passed to a function, or if any funny pointer
 arithmetic is involved, the alloca will not be promoted.</li>
 
-<li>mem2reg only works on allocas of scalar values, and only if the array size
+<li>mem2reg only works on allocas of <a 
+href="../LangRef.html#t_classifications">first class</a> 
+values (such as pointers, scalars and vectors), and only if the array size
 of the allocation is 1 (or missing in the .ll file).  mem2reg is not capable of
 promoting structs or arrays to registers.  Note that the "scalarrepl" pass is
 more powerful and can promote structs, "unions", and arrays in many cases.</li>





More information about the llvm-commits mailing list