Merge isSHUFPMask and isCommutedSHUFPMask into single function that can do both....
authorCraig Topper <craig.topper@gmail.com>
Tue, 6 Dec 2011 04:59:07 +0000 (04:59 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 6 Dec 2011 04:59:07 +0000 (04:59 +0000)
commit1ff73d7a67e4a5bc464523cd1dd7ed3f20baf85b
tree4fbfe9dc07424e53ca66d4a9447173af6fc7ba56
parentdf33e0d05e6b7dc3d65cdb96e52fb6fb6b07f876
Merge isSHUFPMask and isCommutedSHUFPMask into single function that can do both. Do the same for the 256-bit version. Use loops to reduce size of isVSHUFPYMask. Fix test cases that were incorrectly passing due to isCommutedSHUFPMask not checking for the vector being 128-bit. This caused some 256-bit shuffles to be incorrectly commuted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145921 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/avx-vperm2f128.ll
test/CodeGen/X86/avx2-vperm2i128.ll