]> granicus.if.org Git - llvm/commitdiff
[X86] Remove some extra code that snuck into r313450.
authorCraig Topper <craig.topper@intel.com>
Sat, 16 Sep 2017 17:51:55 +0000 (17:51 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 16 Sep 2017 17:51:55 +0000 (17:51 +0000)
The same code appears earlier in the function. This represents an earlier version of what became r313373 that I still had sitting in my local repo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313465 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index da4aa959ea29d073c80bbaf53a13d29461d13863..4df7621bee2bb0ac0afed266271364fef49a6fed 100644 (file)
@@ -12174,10 +12174,6 @@ static SDValue lowerV2X128VectorShuffle(const SDLoc &DL, MVT VT, SDValue V1,
   // If either input operand is a zero vector, use VPERM2X128 because its mask
   // allows us to replace the zero input with an implicit zero.
   if (!IsV1Zero && !IsV2Zero) {
-    // With AVX2, use VPERMQ/VPERMPD to allow memory folding.
-    if (Subtarget.hasAVX2() && V2.isUndef())
-      return SDValue();
-
     // Check for patterns which can be matched with a single insert of a 128-bit
     // subvector.
     bool OnlyUsesV1 = isShuffleEquivalent(V1, V2, Mask, {0, 1, 0, 1});