mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-23 12:24:34 +00:00
name change requested by review of previous patch
llvm-svn: 37289
This commit is contained in:
parent
fd5693fcc4
commit
738f94210c
@ -185,9 +185,9 @@ public:
|
||||
AssemblyFile, ObjectFile, DynamicLibrary
|
||||
};
|
||||
|
||||
/// DoTailMergeDefault - Whether it is generally a good idea to do this
|
||||
/// getEnableTailMergeDefault - the default setting for -enable-tail-merge
|
||||
/// on this target. User flag overrides.
|
||||
virtual const bool DoTailMergeDefault() const { return true; }
|
||||
virtual const bool getEnableTailMergeDefault() const { return true; }
|
||||
|
||||
/// addPassesToEmitFile - Add passes to the specified pass manager to get the
|
||||
/// specified file emitted. Typically this will involve several steps of code
|
||||
@ -320,9 +320,9 @@ public:
|
||||
return true;
|
||||
}
|
||||
|
||||
/// DoTailMergeDefault - Whether it is generally a good idea to do this
|
||||
/// getEnableTailMergeDefault - the default setting for -enable-tail-merge
|
||||
/// on this target. User flag overrides.
|
||||
virtual const bool DoTailMergeDefault() const { return true; }
|
||||
virtual const bool getEnableTailMergeDefault() const { return true; }
|
||||
};
|
||||
|
||||
} // End llvm namespace
|
||||
|
@ -78,7 +78,7 @@ LLVMTargetMachine::addPassesToEmitFile(FunctionPassManager &PM,
|
||||
|
||||
// Branch folding must be run after regalloc and prolog/epilog insertion.
|
||||
if (!Fast)
|
||||
PM.add(createBranchFoldingPass(DoTailMergeDefault()));
|
||||
PM.add(createBranchFoldingPass(getEnableTailMergeDefault()));
|
||||
|
||||
// Fold redundant debug labels.
|
||||
PM.add(createDebugLabelFoldingPass());
|
||||
@ -181,7 +181,7 @@ bool LLVMTargetMachine::addPassesToEmitMachineCode(FunctionPassManager &PM,
|
||||
|
||||
// Branch folding must be run after regalloc and prolog/epilog insertion.
|
||||
if (!Fast)
|
||||
PM.add(createBranchFoldingPass(DoTailMergeDefault()));
|
||||
PM.add(createBranchFoldingPass(getEnableTailMergeDefault()));
|
||||
|
||||
if (addPreEmitPass(PM, Fast) && PrintMachineCode)
|
||||
PM.add(createMachineFunctionPrinterPass(cerr));
|
||||
|
@ -98,7 +98,7 @@ PPCTargetMachine::PPCTargetMachine(const Module &M, const std::string &FS,
|
||||
|
||||
/// Override this for PowerPC. Tail merging happily breaks up instruction issue
|
||||
/// groups, which typically degrades performance.
|
||||
const bool PPCTargetMachine::DoTailMergeDefault() const { return false; }
|
||||
const bool PPCTargetMachine::getEnableTailMergeDefault() const { return false; }
|
||||
|
||||
PPC32TargetMachine::PPC32TargetMachine(const Module &M, const std::string &FS)
|
||||
: PPCTargetMachine(M, FS, false) {
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
MachineCodeEmitter &MCE);
|
||||
virtual bool addSimpleCodeEmitter(FunctionPassManager &PM, bool Fast,
|
||||
MachineCodeEmitter &MCE);
|
||||
virtual const bool DoTailMergeDefault() const;
|
||||
virtual const bool getEnableTailMergeDefault() const;
|
||||
};
|
||||
|
||||
/// PPC32TargetMachine - PowerPC 32-bit target machine.
|
||||
|
Loading…
x
Reference in New Issue
Block a user