[X86][NFC]Remove dead code in X86ISelLowering.cpp
authorWang, Xin10 <xin10.wang@intel.com>
Mon, 27 Mar 2023 01:29:50 +0000 (21:29 -0400)
committerxin10.wang <wangxin8@f90srv19.nh.intel.com>
Mon, 27 Mar 2023 01:30:17 +0000 (21:30 -0400)
Look at the code in X86ISelLowering.cpp line 15579, when NumV2Elements == 0,
it has been handled in that scope, and will not move to the line 15612.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D146790

llvm/lib/Target/X86/X86ISelLowering.cpp

index b9ccb5b..c404eee 100644 (file)
@@ -15609,10 +15609,6 @@ static SDValue lowerV4I32Shuffle(const SDLoc &DL, ArrayRef<int> Mask,
           lowerShuffleAsShift(DL, MVT::v4i32, V1, V2, Mask, Zeroable, Subtarget,
                               DAG, /*BitwiseOnly*/ false))
     return Shift;
-  if (!Subtarget.preferLowerShuffleAsShift() && NumV2Elements == 0)
-    if (SDValue Rotate =
-            lowerShuffleAsBitRotate(DL, MVT::v4i32, V1, Mask, Subtarget, DAG))
-      return Rotate;
 
   // There are special ways we can lower some single-element blends.
   if (NumV2Elements == 1)