[llvm] 0c0681b - [RISCV][NFC] Remove dead code.
Yeting Kuo via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 13 18:08:55 PST 2022
Author: Yeting Kuo
Date: 2022-11-14T10:08:48+08:00
New Revision: 0c0681b7414c385d0fd5fad302c0d48607262050
URL: https://github.com/llvm/llvm-project/commit/0c0681b7414c385d0fd5fad302c0d48607262050
DIFF: https://github.com/llvm/llvm-project/commit/0c0681b7414c385d0fd5fad302c0d48607262050.diff
LOG: [RISCV][NFC] Remove dead code.
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
Added:
Modified:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index 6efc4f098859..687a89e290e3 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -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);
More information about the llvm-commits
mailing list