mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-15 23:57:48 +00:00
Move subreg lowering pass to be right after regalloc, per feedback.
llvm-svn: 40548
This commit is contained in:
parent
cb8f08ebca
commit
55a1e36013
@ -72,6 +72,11 @@ LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM,
|
||||
|
||||
if (PrintMachineCode)
|
||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||
|
||||
PM.add(createLowerSubregsPass());
|
||||
|
||||
if (PrintMachineCode) // Print the subreg lowered code
|
||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||
|
||||
// Run post-ra passes.
|
||||
if (addPostRegAlloc(PM, Fast) && PrintMachineCode)
|
||||
@ -96,8 +101,6 @@ LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM,
|
||||
|
||||
if (addPreEmitPass(PM, Fast) && PrintMachineCode)
|
||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||
|
||||
PM.add(createLowerSubregsPass());
|
||||
|
||||
switch (FileType) {
|
||||
default:
|
||||
@ -178,6 +181,11 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
|
||||
|
||||
if (PrintMachineCode)
|
||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||
|
||||
PM.add(createLowerSubregsPass());
|
||||
|
||||
if (PrintMachineCode) // Print the subreg lowered code
|
||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||
|
||||
// Run post-ra passes.
|
||||
if (addPostRegAlloc(PM, Fast) && PrintMachineCode)
|
||||
@ -199,8 +207,6 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
|
||||
|
||||
if (addPreEmitPass(PM, Fast) && PrintMachineCode)
|
||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||
|
||||
PM.add(createLowerSubregsPass());
|
||||
|
||||
addCodeEmitter(PM, Fast, PrintEmittedAsm, MCE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user