From bd2c8705396b007dd236629fec1ee90aed37ff5d Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Tue, 27 Jul 2004 18:39:34 +0000 Subject: [PATCH] Run the branch selection pass right before the asm printer. Patch by Nate Begeman. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15285 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCTargetMachine.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index 0ca5769040c..ceb6f36aab3 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -86,6 +86,8 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM, PM.add(createMachineFunctionPrinterPass(&std::cerr)); PM.add(createPrologEpilogCodeInserter()); + // Must run branch selection immediately preceding the printer + PM.add(createPPCBranchSelectionPass()); PM.add(createPPCCodePrinterPass(Out, *this)); PM.add(createMachineCodeDeleter()); return false; -- 2.34.1