summaryrefslogtreecommitdiff
path: root/docs/tutorial/LangImpl7.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-05 17:45:54 +0000
committerChris Lattner <sabre@nondot.org>2007-11-05 17:45:54 +0000
commita56b22d7f7fdcb14a3a71426ca8986afeff5e400 (patch)
tree712f416c5d79d0e04785991d260b68819871a3d3 /docs/tutorial/LangImpl7.html
parenta461c4d75b66135ff6f3d41b46a08054b8fc1dc8 (diff)
downloadllvm-a56b22d7f7fdcb14a3a71426ca8986afeff5e400.tar.gz
llvm-a56b22d7f7fdcb14a3a71426ca8986afeff5e400.tar.bz2
llvm-a56b22d7f7fdcb14a3a71426ca8986afeff5e400.tar.xz
Dan points out that mem2reg also promotes vectors: be more precise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/tutorial/LangImpl7.html')
-rw-r--r--docs/tutorial/LangImpl7.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/tutorial/LangImpl7.html b/docs/tutorial/LangImpl7.html
index 6664c7c580..b002f7a451 100644
--- a/docs/tutorial/LangImpl7.html
+++ b/docs/tutorial/LangImpl7.html
@@ -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>