optimize the AVX2 (integer) version of vperm2 into a shuffle
authorSanjay Patel <spatel@rotateright.com>
Tue, 24 Mar 2015 22:39:29 +0000 (22:39 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 24 Mar 2015 22:39:29 +0000 (22:39 +0000)
commit14c1d068a3f7c62189789e2cc86e37f17848badb
tree55e8b2ec0e859c849ab5d2fe4ee9a8d77e7156dc
parentdad4e9cde6e93fa76a39081b747f7b2f9f4984ea
optimize the AVX2 (integer) version of vperm2 into a shuffle

...because this is what happens when an instruction
set puts its underwear on after its pants.

This is an extension of r232852, r233100, and 233110:
http://llvm.org/viewvc/llvm-project?view=revision&revision=232852
http://llvm.org/viewvc/llvm-project?view=revision&revision=233100
http://llvm.org/viewvc/llvm-project?view=revision&revision=233110

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233127 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/x86-vperm2.ll