mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-12 01:25:49 +00:00
Don't run stack slot coloring if -fast.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52933 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -99,7 +99,8 @@ LLVMTargetMachine::addPassesToEmitFile(PassManagerBase &PM,
|
|||||||
PM.add(createRegisterAllocator());
|
PM.add(createRegisterAllocator());
|
||||||
|
|
||||||
// Perform stack slot coloring.
|
// Perform stack slot coloring.
|
||||||
PM.add(createStackSlotColoringPass());
|
if (!Fast)
|
||||||
|
PM.add(createStackSlotColoringPass());
|
||||||
|
|
||||||
if (PrintMachineCode) // Print the register-allocated code
|
if (PrintMachineCode) // Print the register-allocated code
|
||||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||||
@@ -235,7 +236,8 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(PassManagerBase &PM,
|
|||||||
PM.add(createRegisterAllocator());
|
PM.add(createRegisterAllocator());
|
||||||
|
|
||||||
// Perform stack slot coloring.
|
// Perform stack slot coloring.
|
||||||
PM.add(createStackSlotColoringPass());
|
if (!Fast)
|
||||||
|
PM.add(createStackSlotColoringPass());
|
||||||
|
|
||||||
if (PrintMachineCode)
|
if (PrintMachineCode)
|
||||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||||
|
Reference in New Issue
Block a user