OSDN Git Service

[x86] Stop shuffling zero vectors. =]
authorChandler Carruth <chandlerc@gmail.com>
Sun, 15 Feb 2015 10:34:52 +0000 (10:34 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 15 Feb 2015 10:34:52 +0000 (10:34 +0000)
commit52f1b6dbede268c5cf2ffffb0cc0facd7dbb44f1
treee781db4849b74c3c5dbbdf84ddab3d57e3bba413
parent1a9c1dbe4d6830b9ef6ddb8f54f5fc7e4de134a6
[x86] Stop shuffling zero vectors. =]

I was somewhat surprised this pattern really came up, but it does. It
seems better to just directly handle it than try to special case every
place where we end up forming a shuffle that devolves to a shuffle of
a zero vector.

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