From: Misha Brukman Date: Tue, 27 Jul 2004 18:39:34 +0000 (+0000) Subject: Run the branch selection pass right before the asm printer. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=bd2c8705396b007dd236629fec1ee90aed37ff5d;p=oota-llvm.git 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 --- 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;