mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-02 07:41:38 +00:00
if internalize is disabled, don't run the pass at all!
llvm-svn: 37477
This commit is contained in:
parent
b484beac63
commit
5a4086fd85
@ -122,7 +122,8 @@ void Optimize(Module* M) {
|
||||
// Now that composite has been compiled, scan through the module, looking
|
||||
// for a main function. If main is defined, mark all other functions
|
||||
// internal.
|
||||
addPass(Passes, createInternalizePass(!DisableInternalize));
|
||||
if (!DisableInternalize)
|
||||
addPass(Passes, createInternalizePass(true));
|
||||
|
||||
// Propagate constants at call sites into the functions they call. This
|
||||
// opens opportunities for globalopt (and inlining) by substituting function
|
||||
|
Loading…
x
Reference in New Issue
Block a user