summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineSink.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-09 05:42:06 +0000
committerChris Lattner <sabre@nondot.org>2008-03-09 05:42:06 +0000
commitb6387c8a74a01828f3a7c5efb1b9b113a4724d85 (patch)
tree0d6d163b9026503f62cac7cbdd6571a1c0702f1f /llvm/lib/CodeGen/MachineSink.cpp
parent6af064641f9125af9a234b17a226b3891620dea2 (diff)
downloadbcm5719-llvm-b6387c8a74a01828f3a7c5efb1b9b113a4724d85.tar.gz
bcm5719-llvm-b6387c8a74a01828f3a7c5efb1b9b113a4724d85.zip
Finish implementing a readme entry: when inserting an i64 variable
into a vector of zeros or undef, and when the top part is obviously zero, we can just use movd + shuffle. This allows us to compile vec_set-B.ll into: _test3: movl $1234567, %eax andl 4(%esp), %eax movd %eax, %xmm0 ret instead of: _test3: subl $28, %esp movl $1234567, %eax andl 32(%esp), %eax movl %eax, (%esp) movl $0, 4(%esp) movq (%esp), %xmm0 addl $28, %esp ret llvm-svn: 48090
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud