Improve code for passing constant longs as arguments to function calls.
authorChris Lattner <sabre@nondot.org>
Tue, 6 Apr 2004 03:23:00 +0000 (03:23 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 6 Apr 2004 03:23:00 +0000 (03:23 +0000)
commit92900a65a362947010d22ff1998f722097044961
tree17b583bcca0cde588abeab0e866d44a3b138ecf1
parent33f7fa317b1c0bcc8c511b849d9e154d297ba9ac
Improve code for passing constant longs as arguments to function calls.
For example, on this instruction:

        call void %test(long 1234)

Instead of this:
        mov %EAX, 1234
        mov %ECX, 0
        mov DWORD PTR [%ESP], %EAX
        mov DWORD PTR [%ESP + 4], %ECX
        call test

We now emit this:
        mov DWORD PTR [%ESP], 1234
        mov DWORD PTR [%ESP + 4], 0
        call test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12686 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/InstSelectSimple.cpp
lib/Target/X86/X86ISelSimple.cpp