[llvm] 12e8463 - [X86][NFC]Remove dead code in X86ISelLowering.cpp

via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 26 18:30:26 PDT 2023


Author: Wang, Xin10
Date: 2023-03-26T21:30:17-04:00
New Revision: 12e8463b149c5e982942a9af7080521026979141

URL: https://github.com/llvm/llvm-project/commit/12e8463b149c5e982942a9af7080521026979141
DIFF: https://github.com/llvm/llvm-project/commit/12e8463b149c5e982942a9af7080521026979141.diff

LOG: [X86][NFC]Remove dead code in X86ISelLowering.cpp

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

Added: 
    

Modified: 
    llvm/lib/Target/X86/X86ISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index b9ccb5b2c48dc..c404eee866b34 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -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)


        


More information about the llvm-commits mailing list