mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-18 06:38:41 +00:00
Run the new pass in gccld now that it passes all tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12196 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7e6f5090af
commit
f8338c4375
@ -111,6 +111,10 @@ GenerateBytecode (Module *M, bool Strip, bool Internalize, std::ostream *Out) {
|
|||||||
if (!DisableInline)
|
if (!DisableInline)
|
||||||
addPass(Passes, createFunctionInliningPass()); // Inline small functions
|
addPass(Passes, createFunctionInliningPass()); // Inline small functions
|
||||||
|
|
||||||
|
// If we didn't decide to inline a function, check to see if we can
|
||||||
|
// transform it to pass arguments by value instead of by reference.
|
||||||
|
addPass(Passes, createArgumentPromotionPass());
|
||||||
|
|
||||||
// The IPO passes may leave cruft around. Clean up after them.
|
// The IPO passes may leave cruft around. Clean up after them.
|
||||||
addPass(Passes, createInstructionCombiningPass());
|
addPass(Passes, createInstructionCombiningPass());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user