1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-21 03:53:04 +02:00
llvm-mirror/lib
Chris Lattner 9ee4ecfe74 constant fold bits_convert in getNode and in the dag combiner for fp<->int
conversions.  This allows V8 to compiles this:

void %test() {
        call float %test2( float 1.000000e+00, float 2.000000e+00, double 3.000000e+00, double* null )
        ret void
}

into:

test:
        save -96, %o6, %o6
        sethi 0, %o3
        sethi 1049088, %o2
        sethi 1048576, %o1
        sethi 1040384, %o0
        or %g0, %o3, %o4
        call test2
        nop
        restore %g0, %g0, %g0
        retl
        nop

instead of:

test:
        save -112, %o6, %o6
        sethi 0, %o4
        sethi 1049088, %l0
        st %o4, [%i6+-12]
        st %l0, [%i6+-16]
        ld [%i6+-12], %o3
        ld [%i6+-16], %o2
        sethi 1048576, %o1
        sethi 1040384, %o0
        call test2
        nop
        restore %g0, %g0, %g0
        retl
        nop

llvm-svn: 24980
2005-12-23 05:30:37 +00:00
..
Analysis Separate the call graph implementation from its interface. This implements 2005-12-22 06:07:52 +00:00
AsmParser Regenerate 2005-12-21 18:31:50 +00:00
Bytecode Fix a problem with llvm-ranlib that (on some platforms) caused the archive 2005-11-30 05:21:10 +00:00
CodeGen constant fold bits_convert in getNode and in the dag combiner for fp<->int 2005-12-23 05:30:37 +00:00
Debugger tell selectiondag when we're debugging 2005-11-16 07:21:47 +00:00
ExecutionEngine Fix a nasty bug that was causing miscompilation of global variables 2005-10-23 23:54:56 +00:00
Linker Adjust the constructor to the Linker class to take an argument that names 2005-12-13 20:00:37 +00:00
Support For PR351: 2005-12-22 03:31:26 +00:00
System For PR351: 2005-12-22 20:00:16 +00:00
Target make sure bit_convert's are expanded 2005-12-23 05:15:23 +00:00
Transforms Fix Transforms/ScalarRepl/2005-12-14-UnionPromoteCrash.ll, a crash on undefined 2005-12-14 17:23:59 +00:00
VMCore Revert previous patch. Additional tests fail. 2005-12-22 21:46:37 +00:00
Makefile Add the Linker library 2004-11-14 21:54:41 +00:00