forked from OSchip/llvm-project
A couple minor fixes suggested by Matthijs Kooijman
llvm-svn: 49729
This commit is contained in:
parent
45887902b6
commit
a5eb45bcfd
|
@ -327,7 +327,7 @@ don't "new" a type, you "get" it.</p>
|
|||
|
||||
<p>The final line above actually creates the function that the prototype will
|
||||
correspond to. This indicates the type, linkage and name to use, as well as which
|
||||
module to insert into. "<a href="LangRef.html#linkage">external linkage</a>"
|
||||
module to insert into. "<a href="../LangRef.html#linkage">external linkage</a>"
|
||||
means that the function may be defined outside the current module and/or that it
|
||||
is callable by functions outside the module. The Name passed in is the name the
|
||||
user specified: since "<tt>TheModule</tt>" is specified, this name is registered
|
||||
|
|
|
@ -123,7 +123,7 @@ entry:
|
|||
|
||||
<p>In this case, the LHS and RHS of the multiplication are the same value. We'd
|
||||
really like to see this generate "<tt>tmp = x+3; result = tmp*tmp;</tt>" instead
|
||||
of computing "<tt>x*3</tt>" twice.</p>
|
||||
of computing "<tt>x+3</tt>" twice.</p>
|
||||
|
||||
<p>Unfortunately, no amount of local analysis will be able to detect and correct
|
||||
this. This requires two transformations: reassociation of expressions (to
|
||||
|
|
Loading…
Reference in New Issue