Skip to content

Commit

Permalink
irbuilder is doing constant folding now by default, PR6092
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96502 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
lattner committed Feb 17, 2010
1 parent d071845 commit b886089
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/tutorial/LangImpl3.html
Original file line number Diff line number Diff line change
Expand Up @@ -535,16 +535,16 @@
Read top-level expression:
define double @""() {
entry:
%addtmp = add double 4.000000e+00, 5.000000e+00
ret double %addtmp
ret double 9.000000e+00
}
</pre>
</div>

<p>Note how the parser turns the top-level expression into anonymous functions
for us. This will be handy when we add <a href="LangImpl4.html#jit">JIT
support</a> in the next chapter. Also note that the code is very literally
transcribed, no optimizations are being performed. We will
transcribed, no optimizations are being performed except simple constant
folding done by IRBuilder. We will
<a href="LangImpl4.html#trivialconstfold">add optimizations</a> explicitly in
the next chapter.</p>

Expand Down

0 comments on commit b886089

Please sign in to comment.