1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Dan points out that mem2reg also promotes vectors: be more precise.

llvm-svn: 43715
This commit is contained in:
Chris Lattner 2007-11-05 17:45:54 +00:00
parent ec35b58b0a
commit 3fdb44ec16

View 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>