diff options
author | Chris Lattner <sabre@nondot.org> | 2010-02-17 19:54:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-02-17 19:54:34 +0000 |
commit | aed2479a45976444d622eae1b7403f7776ec69aa (patch) | |
tree | d62daf6d14222b9b5606dd61774f639b465e68a0 /llvm/docs/tutorial/LangImpl3.html | |
parent | 999ddbcf8eb23329c8ebc1236161ddcec1dcccf2 (diff) | |
download | bcm5719-llvm-aed2479a45976444d622eae1b7403f7776ec69aa.tar.gz bcm5719-llvm-aed2479a45976444d622eae1b7403f7776ec69aa.zip |
irbuilder is doing constant folding now by default, PR6092
llvm-svn: 96502
Diffstat (limited to 'llvm/docs/tutorial/LangImpl3.html')
-rw-r--r-- | llvm/docs/tutorial/LangImpl3.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/tutorial/LangImpl3.html b/llvm/docs/tutorial/LangImpl3.html index 47cf62ecad6..846a55f47f2 100644 --- a/llvm/docs/tutorial/LangImpl3.html +++ b/llvm/docs/tutorial/LangImpl3.html @@ -535,8 +535,7 @@ ready> <b>4+5</b>; 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> @@ -544,7 +543,8 @@ entry: <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> |