mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Move the post-lsr simplify cfg pass after lowereh, so it can clean up after
eh lowering as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23459 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
30e21a46f0
commit
5e8d2dc197
@ -71,13 +71,15 @@ bool PowerPCTargetMachine::addPassesToEmitFile(PassManager &PM,
|
|||||||
|
|
||||||
// Run loop strength reduction before anything else.
|
// Run loop strength reduction before anything else.
|
||||||
PM.add(createLoopStrengthReducePass());
|
PM.add(createLoopStrengthReducePass());
|
||||||
PM.add(createCFGSimplificationPass());
|
|
||||||
|
|
||||||
// FIXME: Implement efficient support for garbage collection intrinsics.
|
// FIXME: Implement efficient support for garbage collection intrinsics.
|
||||||
PM.add(createLowerGCPass());
|
PM.add(createLowerGCPass());
|
||||||
|
|
||||||
// FIXME: Implement the invoke/unwind instructions!
|
// FIXME: Implement the invoke/unwind instructions!
|
||||||
PM.add(createLowerInvokePass());
|
PM.add(createLowerInvokePass());
|
||||||
|
|
||||||
|
// Clean up after other passes, e.g. merging critical edges.
|
||||||
|
PM.add(createCFGSimplificationPass());
|
||||||
|
|
||||||
// FIXME: Implement the switch instruction in the instruction selector!
|
// FIXME: Implement the switch instruction in the instruction selector!
|
||||||
PM.add(createLowerSwitchPass());
|
PM.add(createLowerSwitchPass());
|
||||||
@ -126,7 +128,6 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
|||||||
|
|
||||||
// Run loop strength reduction before anything else.
|
// Run loop strength reduction before anything else.
|
||||||
PM.add(createLoopStrengthReducePass());
|
PM.add(createLoopStrengthReducePass());
|
||||||
PM.add(createCFGSimplificationPass());
|
|
||||||
|
|
||||||
// FIXME: Implement efficient support for garbage collection intrinsics.
|
// FIXME: Implement efficient support for garbage collection intrinsics.
|
||||||
PM.add(createLowerGCPass());
|
PM.add(createLowerGCPass());
|
||||||
@ -134,6 +135,9 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
|||||||
// FIXME: Implement the invoke/unwind instructions!
|
// FIXME: Implement the invoke/unwind instructions!
|
||||||
PM.add(createLowerInvokePass());
|
PM.add(createLowerInvokePass());
|
||||||
|
|
||||||
|
// Clean up after other passes, e.g. merging critical edges.
|
||||||
|
PM.add(createCFGSimplificationPass());
|
||||||
|
|
||||||
// FIXME: Implement the switch instruction in the instruction selector!
|
// FIXME: Implement the switch instruction in the instruction selector!
|
||||||
PM.add(createLowerSwitchPass());
|
PM.add(createLowerSwitchPass());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user