forked from OSchip/llvm-project
Fix all of those problems that the PPC backend has running 176.gcc :)
llvm-svn: 14565
This commit is contained in:
parent
6c322ecc31
commit
3594324248
|
@ -55,6 +55,9 @@ bool PowerPCTargetMachine::addPassesToEmitAssembly(PassManager &PM,
|
||||||
|
|
||||||
PM.add(createLowerConstantExpressionsPass());
|
PM.add(createLowerConstantExpressionsPass());
|
||||||
|
|
||||||
|
// Make sure that no unreachable blocks are instruction selected.
|
||||||
|
PM.add(createUnreachableBlockEliminationPass());
|
||||||
|
|
||||||
PM.add(createPPCSimpleInstructionSelector(*this));
|
PM.add(createPPCSimpleInstructionSelector(*this));
|
||||||
|
|
||||||
if (PrintMachineCode)
|
if (PrintMachineCode)
|
||||||
|
@ -86,6 +89,9 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
||||||
|
|
||||||
PM.add(createLowerConstantExpressionsPass());
|
PM.add(createLowerConstantExpressionsPass());
|
||||||
|
|
||||||
|
// Make sure that no unreachable blocks are instruction selected.
|
||||||
|
PM.add(createUnreachableBlockEliminationPass());
|
||||||
|
|
||||||
PM.add(createPPCSimpleInstructionSelector(TM));
|
PM.add(createPPCSimpleInstructionSelector(TM));
|
||||||
PM.add(createRegisterAllocator());
|
PM.add(createRegisterAllocator());
|
||||||
PM.add(createPrologEpilogCodeInserter());
|
PM.add(createPrologEpilogCodeInserter());
|
||||||
|
|
Loading…
Reference in New Issue