From: Chris Lattner Date: Wed, 17 Feb 2010 19:54:34 +0000 (+0000) Subject: irbuilder is doing constant folding now by default, PR6092 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b886089645a144babe64067928acc19814434775;p=oota-llvm.git irbuilder is doing constant folding now by default, PR6092 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96502 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/tutorial/LangImpl3.html b/docs/tutorial/LangImpl3.html index 47cf62ecad6..846a55f47f2 100644 --- a/docs/tutorial/LangImpl3.html +++ b/docs/tutorial/LangImpl3.html @@ -535,8 +535,7 @@ ready> 4+5; Read top-level expression: define double @""() { entry: - %addtmp = add double 4.000000e+00, 5.000000e+00 - ret double %addtmp + ret double 9.000000e+00 } @@ -544,7 +543,8 @@ entry:

Note how the parser turns the top-level expression into anonymous functions for us. This will be handy when we add JIT support 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 add optimizations explicitly in the next chapter.