[x86] Hoist the zext-lowering up in the v4i32 lowering routine -- it is
authorChandler Carruth <chandlerc@gmail.com>
Wed, 1 Oct 2014 02:25:54 +0000 (02:25 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 1 Oct 2014 02:25:54 +0000 (02:25 +0000)
commit429670f0e8e25f6f6deb41a4e17a4ca0f91f1325
tree8196e928b823132014dad2a6ba49e98fb1359165
parent771ac70aed5efb591a78d22b44a4589183e6c3f0
[x86] Hoist the zext-lowering up in the v4i32 lowering routine -- it is
the same speed as pshufd but we can fold loads into the pmovzx
instructions.

This fixes some regressions that came up in the regression test suite
for the new vector shuffle lowering.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218733 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vector-shuffle-128-v4.ll