[llvm-commits] X86 mayfold patch.
Michael Liao
michael.liao at intel.com
Tue Oct 23 16:59:55 PDT 2012
LGTM.
- Michael
On Wed, 2012-10-24 at 01:52 +0200, Jakub Staszak wrote:
> 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
> _______________________________________________ llvm-commits mailing list llvm-commits at cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list