mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-13 21:10:39 +00:00
add an instcombine pass to clean up after heavy-lifting IP passes
llvm-svn: 33843
This commit is contained in:
parent
476eb1ca17
commit
ff4821d186
@ -239,6 +239,12 @@ int llvm::GenerateBytecode(Module *M, int StripLevel, bool Internalize,
|
|||||||
// Remove unused arguments from functions...
|
// Remove unused arguments from functions...
|
||||||
addPass(Passes, createDeadArgEliminationPass());
|
addPass(Passes, createDeadArgEliminationPass());
|
||||||
|
|
||||||
|
// Reduce the code after globalopt and ipsccp. Both can open up significant
|
||||||
|
// simplification opportunities, and both can propagate functions through
|
||||||
|
// function pointers. When this happens, we often have to resolve varargs
|
||||||
|
// calls, etc, so let instcombine do this.
|
||||||
|
addPass(Passes, createInstructionCombiningPass());
|
||||||
|
|
||||||
if (!DisableInline)
|
if (!DisableInline)
|
||||||
addPass(Passes, createFunctionInliningPass()); // Inline small functions
|
addPass(Passes, createFunctionInliningPass()); // Inline small functions
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user