diff --git a/llvm/include/llvm/CodeGen/TargetPassConfig.h b/llvm/include/llvm/CodeGen/TargetPassConfig.h --- a/llvm/include/llvm/CodeGen/TargetPassConfig.h +++ b/llvm/include/llvm/CodeGen/TargetPassConfig.h @@ -251,10 +251,6 @@ /// sequence into one that can be selected by the target. virtual bool addLegalizeMachineIR() { return true; } - /// This method may be implemented by targets that want to run passes - /// immediately before the register bank selection. - virtual void addPreRegBankSelect() {} - /// This method should install a register bank selector pass, which /// assigns register banks to virtual registers without a register /// class or register banks. diff --git a/llvm/lib/CodeGen/TargetPassConfig.cpp b/llvm/lib/CodeGen/TargetPassConfig.cpp --- a/llvm/lib/CodeGen/TargetPassConfig.cpp +++ b/llvm/lib/CodeGen/TargetPassConfig.cpp @@ -796,10 +796,6 @@ if (addLegalizeMachineIR()) return true; - // Before running the register bank selector, ask the target if it - // wants to run some passes. - addPreRegBankSelect(); - if (addRegBankSelect()) return true;