mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
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
This commit is contained in:
parent
d071845f64
commit
b886089645
@ -535,8 +535,7 @@ ready> <b>4+5</b>;
|
|||||||
Read top-level expression:
|
Read top-level expression:
|
||||||
define double @""() {
|
define double @""() {
|
||||||
entry:
|
entry:
|
||||||
%addtmp = add double 4.000000e+00, 5.000000e+00
|
ret double 9.000000e+00
|
||||||
ret double %addtmp
|
|
||||||
}
|
}
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
@ -544,7 +543,8 @@ entry:
|
|||||||
<p>Note how the parser turns the top-level expression into anonymous functions
|
<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
|
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
|
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
|
<a href="LangImpl4.html#trivialconstfold">add optimizations</a> explicitly in
|
||||||
the next chapter.</p>
|
the next chapter.</p>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user