mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
The EH prepare passes really want to be the last passes run before code-gen.
llvm-svn: 110248
This commit is contained in:
parent
319c3f56c8
commit
249580ed17
@ -272,6 +272,11 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
||||
PM.add(createPrintFunctionPass("\n\n*** Code after LSR ***\n", &dbgs()));
|
||||
}
|
||||
|
||||
PM.add(createGCLoweringPass());
|
||||
|
||||
// Make sure that no unreachable blocks are instruction selected.
|
||||
PM.add(createUnreachableBlockEliminationPass());
|
||||
|
||||
// Turn exception handling constructs into something the code generators can
|
||||
// handle.
|
||||
switch (getMCAsmInfo()->getExceptionHandlingType()) {
|
||||
@ -293,11 +298,6 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
|
||||
break;
|
||||
}
|
||||
|
||||
PM.add(createGCLoweringPass());
|
||||
|
||||
// Make sure that no unreachable blocks are instruction selected.
|
||||
PM.add(createUnreachableBlockEliminationPass());
|
||||
|
||||
if (OptLevel != CodeGenOpt::None && !DisableCGP)
|
||||
PM.add(createCodeGenPreparePass(getTargetLowering()));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user