[llvm-commits] [llvm] r41070 - /llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll

Chris Lattner clattner at apple.com
Tue Aug 14 09:22:34 PDT 2007


On Aug 14, 2007, at 2:16 AM, Evan Cheng wrote:

> Author: evancheng
> Date: Tue Aug 14 04:16:00 2007
> New Revision: 41070
>
> URL: http://llvm.org/viewvc/llvm-project?rev=41070&view=rev
> Log:
> Update test case. A spill should now be deleted.
>
> Modified:
>     llvm/trunk/test/CodeGen/X86/constant-pool-remat-0.ll

Nice.  I tweaked it to avoid the fpstack stuff on x86-32.  I'm now  
getting:

x86-32:

_array:
         subl    $12, %esp
         movss   LCPI1_0, %xmm0
         mulss   16(%esp), %xmm0
         movss   %xmm0, (%esp)
         call    L_qux$stub
         movss   LCPI1_0, %xmm1
         mulss   %xmm1, %xmm0
         addl    $12, %esp
         ret

x86-64:

_array:
         subq    $8, %rsp
         movss   LCPI1_0(%rip), %xmm1
         mulss   %xmm1, %xmm0
         call    _qux
         movss   LCPI1_0(%rip), %xmm1
         mulss   %xmm1, %xmm0
         addq    $8, %rsp
         ret

Both look great, but we should still fold the remat load into the  
muls :)

-Chris



More information about the llvm-commits mailing list