[llvm-commits] X86 mayfold patch.

Jakub Staszak kubastaszak at gmail.com
Tue Oct 23 16:52:54 PDT 2012


The attached patch allows to fold vector load if there is more than one bitcast, so in the case:

  %0 = load <8 x i16>* %dest
  %1 = shufflevector <8 x i16> %0, <8 x i16> %in, <8 x i32> < i32 0, i32 1, i32 2, i32 3, i32 13, i32 undef, i32 14, i32 14>
  store <8 x i16> %1, <8 x i16>* %dest

We get:

        vmovlpd (%eax), %xmm0, %xmm0

instead of

        vmovaps (%eax), %xmm1
        vmovsd  %xmm1, %xmm0, %xmm0

No extra test-case is added. I just fixed the existing one (also it uses FileCheck now).

OK to commit?
- Kuba
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mayfold.patch
Type: application/octet-stream
Size: 2214 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121024/cac762a1/attachment.obj>


More information about the llvm-commits mailing list