[LLVMdev] Poor floating point optimizations?
Sdadsda Sdasdaas
llvmuser at yahoo.com
Sat Nov 20 14:41:50 PST 2010
And also the resulting assembly code is very poor:
00460013 movss xmm0,dword ptr [esp+8]
00460019 movaps xmm1,xmm0
0046001C addss xmm1,xmm1
00460020 pxor xmm2,xmm2
00460024 addss xmm2,xmm1
00460028 addss xmm2,xmm0
0046002C movss dword ptr [esp],xmm2
00460031 fld dword ptr [esp]
Especially pxor&and instead of movss (which is unnecessary anyway) is just pure
madness.
Bob D.
More information about the llvm-dev
mailing list