diff --git a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp index 8318018db791..45e59214d7f9 100644 --- a/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp +++ b/llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp @@ -840,13 +840,10 @@ bool AArch64InstructionSelector::selectVectorSHL( return false; unsigned Opc = 0; - const TargetRegisterClass *RC = nullptr; if (Ty == LLT::vector(4, 32)) { Opc = AArch64::USHLv4i32; - RC = &AArch64::FPR128RegClass; } else if (Ty == LLT::vector(2, 32)) { Opc = AArch64::USHLv2i32; - RC = &AArch64::FPR64RegClass; } else { LLVM_DEBUG(dbgs() << "Unhandled G_SHL type"); return false;