From 12e8463b149c5e982942a9af7080521026979141 Mon Sep 17 00:00:00 2001 From: "Wang, Xin10" Date: Sun, 26 Mar 2023 21:29:50 -0400 Subject: [PATCH] [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 --- llvm/lib/Target/X86/X86ISelLowering.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp index b9ccb5b..c404eee 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 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) -- 2.7.4