mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +00:00
Enabling some of these passes causes lli to break
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6457 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c89d256e95
commit
b17343d81e
@ -210,17 +210,21 @@ bool UltraSparc::addPassesToJITCompile(PassManager &PM) {
|
||||
|
||||
// Specialize LLVM code for this target machine and then
|
||||
// run basic dataflow optimizations on LLVM code.
|
||||
#if 0
|
||||
if (!DisablePreSelect) {
|
||||
PM.add(createPreSelectionPass(*this));
|
||||
PM.add(createReassociatePass());
|
||||
PM.add(createLICMPass());
|
||||
PM.add(createGCSEPass());
|
||||
}
|
||||
#endif
|
||||
|
||||
PM.add(createInstructionSelectionPass(*this));
|
||||
|
||||
#if 0
|
||||
if (!DisableSched)
|
||||
PM.add(createInstructionSchedulingWithSSAPass(*this));
|
||||
#endif
|
||||
|
||||
// new pass: convert Value* in MachineOperand to an unsigned register
|
||||
// this brings it in line with what the X86 JIT's RegisterAllocator expects
|
||||
@ -229,8 +233,10 @@ bool UltraSparc::addPassesToJITCompile(PassManager &PM) {
|
||||
PM.add(getRegisterAllocator(*this));
|
||||
PM.add(getPrologEpilogInsertionPass());
|
||||
|
||||
#if 0
|
||||
if (!DisablePeephole)
|
||||
PM.add(createPeepholeOptsPass(*this));
|
||||
#endif
|
||||
|
||||
return false; // success!
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user