From f66214fc7b766b5e69d50a766a8a78fc9a8e99af Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Wed, 4 Apr 2018 04:38:55 +0000 Subject: [PATCH] [X86] Remove dead code for handling i8/i16 UMUL_LOHI/SMUL_LOHI from X86ISelDAGToDAG.cpp. NFC These are promoted to i16/i32 multiplies by a DAG combine. llvm-svn: 329147 --- lib/Target/X86/X86ISelDAGToDAG.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index 1edeb85ddb0..a8406781ba8 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -2816,8 +2816,6 @@ void X86DAGToDAGISel::Select(SDNode *Node) { if (!isSigned) { switch (NVT.SimpleTy) { default: llvm_unreachable("Unsupported VT!"); - case MVT::i8: Opc = X86::MUL8r; MOpc = X86::MUL8m; break; - case MVT::i16: Opc = X86::MUL16r; MOpc = X86::MUL16m; break; case MVT::i32: Opc = hasBMI2 ? X86::MULX32rr : X86::MUL32r; MOpc = hasBMI2 ? X86::MULX32rm : X86::MUL32m; break; case MVT::i64: Opc = hasBMI2 ? X86::MULX64rr : X86::MUL64r; @@ -2826,8 +2824,6 @@ void X86DAGToDAGISel::Select(SDNode *Node) { } else { switch (NVT.SimpleTy) { default: llvm_unreachable("Unsupported VT!"); - case MVT::i8: Opc = X86::IMUL8r; MOpc = X86::IMUL8m; break; - case MVT::i16: Opc = X86::IMUL16r; MOpc = X86::IMUL16m; break; case MVT::i32: Opc = X86::IMUL32r; MOpc = X86::IMUL32m; break; case MVT::i64: Opc = X86::IMUL64r; MOpc = X86::IMUL64m; break; } @@ -2836,14 +2832,6 @@ void X86DAGToDAGISel::Select(SDNode *Node) { unsigned SrcReg, LoReg, HiReg; switch (Opc) { default: llvm_unreachable("Unknown MUL opcode!"); - case X86::IMUL8r: - case X86::MUL8r: - SrcReg = LoReg = X86::AL; HiReg = X86::AH; - break; - case X86::IMUL16r: - case X86::MUL16r: - SrcReg = LoReg = X86::AX; HiReg = X86::DX; - break; case X86::IMUL32r: case X86::MUL32r: SrcReg = LoReg = X86::EAX; HiReg = X86::EDX;