mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-21 00:39:53 +00:00
PPU LLVM: disable unnecessary passes
This commit is contained in:
parent
1196e9decc
commit
f49a30bc1a
@ -1182,19 +1182,19 @@ static void ppu_initialize2(jit_compiler& jit, const ppu_module& module_part, co
|
|||||||
legacy::FunctionPassManager pm(module.get());
|
legacy::FunctionPassManager pm(module.get());
|
||||||
|
|
||||||
// Basic optimizations
|
// Basic optimizations
|
||||||
pm.add(createCFGSimplificationPass());
|
//pm.add(createCFGSimplificationPass());
|
||||||
pm.add(createPromoteMemoryToRegisterPass());
|
//pm.add(createPromoteMemoryToRegisterPass());
|
||||||
pm.add(createEarlyCSEPass());
|
pm.add(createEarlyCSEPass());
|
||||||
pm.add(createTailCallEliminationPass());
|
pm.add(createTailCallEliminationPass());
|
||||||
pm.add(createReassociatePass());
|
//pm.add(createInstructionCombiningPass());
|
||||||
pm.add(createInstructionCombiningPass());
|
|
||||||
//pm.add(createBasicAAWrapperPass());
|
//pm.add(createBasicAAWrapperPass());
|
||||||
//pm.add(new MemoryDependenceAnalysis());
|
//pm.add(new MemoryDependenceAnalysis());
|
||||||
pm.add(createLICMPass());
|
pm.add(createLICMPass());
|
||||||
pm.add(createLoopInstSimplifyPass());
|
pm.add(createLoopInstSimplifyPass());
|
||||||
pm.add(createNewGVNPass());
|
//pm.add(createNewGVNPass());
|
||||||
pm.add(createDeadStoreEliminationPass());
|
pm.add(createDeadStoreEliminationPass());
|
||||||
pm.add(createSCCPPass());
|
pm.add(createSCCPPass());
|
||||||
|
pm.add(createReassociatePass());
|
||||||
pm.add(createInstructionCombiningPass());
|
pm.add(createInstructionCombiningPass());
|
||||||
pm.add(createInstructionSimplifierPass());
|
pm.add(createInstructionSimplifierPass());
|
||||||
pm.add(createAggressiveDCEPass());
|
pm.add(createAggressiveDCEPass());
|
||||||
@ -1251,10 +1251,10 @@ static void ppu_initialize2(jit_compiler& jit, const ppu_module& module_part, co
|
|||||||
legacy::PassManager mpm;
|
legacy::PassManager mpm;
|
||||||
|
|
||||||
// Remove unused functions, structs, global variables, etc
|
// Remove unused functions, structs, global variables, etc
|
||||||
mpm.add(createStripDeadPrototypesPass());
|
//mpm.add(createStripDeadPrototypesPass());
|
||||||
//mpm.add(createFunctionInliningPass());
|
//mpm.add(createFunctionInliningPass());
|
||||||
mpm.add(createDeadInstEliminationPass());
|
//mpm.add(createDeadInstEliminationPass());
|
||||||
mpm.run(*module);
|
//mpm.run(*module);
|
||||||
|
|
||||||
// Update dialog
|
// Update dialog
|
||||||
Emu.CallAfter([=]()
|
Emu.CallAfter([=]()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user