From: Wang, Xin10 Date: Mon, 27 Mar 2023 01:29:50 +0000 (-0400) Subject: [X86][NFC]Remove dead code in X86ISelLowering.cpp X-Git-Tag: upstream/17.0.6~13631 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12e8463b149c5e982942a9af7080521026979141;p=platform%2Fupstream%2Fllvm.git [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 --- 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)