From de7be5e46f9eb3433fab194897859291e3dbc98f Mon Sep 17 00:00:00 2001 From: Aleksandar Beserminji Date: Mon, 21 May 2018 10:20:02 +0000 Subject: [mips] Merge MipsLongBranch and MipsHazardSchedule passes MipsLongBranchPass and MipsHazardSchedule passes are joined to one pass because of mutual conflict. When MipsHazardSchedule inserts 'nop's, it potentially breaks some jumps, so they have to be expanded to long branches. When some branch is expanded to long branch, it potentially creates a hazard situation, which should be fixed by adding nops. New pass is called MipsBranchExpansion, it combines these two passes, and runs them alternately until one of them reports no changes were made. Differential Revision: https://reviews.llvm.org/D46641 llvm-svn: 332834 --- llvm/lib/Target/Mips/Mips.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Target/Mips/Mips.h') diff --git a/llvm/lib/Target/Mips/Mips.h b/llvm/lib/Target/Mips/Mips.h index 641eecef9c4..51d7ed7137d 100644 --- a/llvm/lib/Target/Mips/Mips.h +++ b/llvm/lib/Target/Mips/Mips.h @@ -33,8 +33,7 @@ namespace llvm { FunctionPass *createMipsModuleISelDagPass(); FunctionPass *createMipsOptimizePICCallPass(); FunctionPass *createMipsDelaySlotFillerPass(); - FunctionPass *createMipsHazardSchedule(); - FunctionPass *createMipsLongBranchPass(); + FunctionPass *createMipsBranchExpansion(); FunctionPass *createMipsConstantIslandPass(); FunctionPass *createMicroMipsSizeReductionPass(); @@ -43,7 +42,7 @@ namespace llvm { MipsRegisterBankInfo &); void initializeMipsDelaySlotFillerPass(PassRegistry &); - void initializeMipsLongBranchPass(PassRegistry &); + void initializeMipsBranchExpansionPass(PassRegistry &); } // end namespace llvm; #endif -- cgit v1.2.3