[RISCV][NFC] Remove dead code.
authorYeting Kuo <yeting.kuo@sifive.com>
Sun, 13 Nov 2022 13:43:31 +0000 (21:43 +0800)
committerYeting Kuo <yeting.kuo@sifive.com>
Mon, 14 Nov 2022 02:08:48 +0000 (10:08 +0800)
All ISD::BSWAP nodes are not customized lowered in RISC-V now, so the patch
removed dead code for ISD::BSWAP in LowerOperation.

Reviewed By: craig.topper

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

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

index 6efc4f0..687a89e 100644 (file)
@@ -3572,7 +3572,6 @@ SDValue RISCVTargetLowering::LowerOperation(SDValue Op,
     return LowerINTRINSIC_W_CHAIN(Op, DAG);
   case ISD::INTRINSIC_VOID:
     return LowerINTRINSIC_VOID(Op, DAG);
-  case ISD::BSWAP:
   case ISD::BITREVERSE: {
     MVT VT = Op.getSimpleValueType();
     SDLoc DL(Op);