mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 02:33:33 +00:00
Turn on the AddReadAttrs pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56345 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a01febbcc0
commit
210fada2c6
@ -288,8 +288,10 @@ inline void addPass(PassManager &PM, Pass *P) {
|
||||
}
|
||||
MPM.add(createInstructionCombiningPass()); // Clean up after IPCP & DAE
|
||||
MPM.add(createCFGSimplificationPass()); // Clean up after IPCP & DAE
|
||||
if (UnitAtATime)
|
||||
if (UnitAtATime) {
|
||||
MPM.add(createPruneEHPass()); // Remove dead EH info
|
||||
MPM.add(createAddReadAttrsPass()); // Set readonly/readnone attrs
|
||||
}
|
||||
if (OptLevel > 1)
|
||||
MPM.add(createFunctionInliningPass()); // Inline small functions
|
||||
if (OptLevel > 2)
|
||||
@ -360,6 +362,7 @@ void AddStandardCompilePasses(PassManager &PM) {
|
||||
addPass(PM, createCFGSimplificationPass()); // Clean up after IPCP & DAE
|
||||
|
||||
addPass(PM, createPruneEHPass()); // Remove dead EH info
|
||||
addPass(PM, createAddReadAttrsPass()); // Set readonly/readnone attrs
|
||||
|
||||
if (!DisableInline)
|
||||
addPass(PM, createFunctionInliningPass()); // Inline small functions
|
||||
|
Loading…
x
Reference in New Issue
Block a user