Dan points out that mem2reg also promotes vectors: be more precise.
authorChris Lattner <sabre@nondot.org>
Mon, 5 Nov 2007 17:45:54 +0000 (17:45 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 5 Nov 2007 17:45:54 +0000 (17:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43715 91177308-0d34-0410-b5e6-96231b3b80d8

docs/tutorial/LangImpl7.html

index 6664c7c5802acbcf4855ae2bd812cdda4a245dc0..b002f7a45193f31427a246f451e7be5699eb3c0f 100644 (file)
@@ -258,7 +258,9 @@ once, which makes analysis simpler.</li>
 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>