diff options
author | Dale Johannesen <dalej@apple.com> | 2007-05-22 17:14:46 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-05-22 17:14:46 +0000 |
commit | 81da02b553b86868637f27b89c6e919c31ed5b51 (patch) | |
tree | a5026c04264ed6e37a5d7da17c8e0b9d4935d8d6 /lib/Target/PowerPC/PPCTargetMachine.cpp | |
parent | 9621921acb971aa5c30a4800dd99538361c45eba (diff) |
Make tail merging the default, except on powerPC. There was no prior art
for a target-dependent default with a command-line override; this way
should be generally usable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCTargetMachine.cpp')
-rw-r--r-- | lib/Target/PowerPC/PPCTargetMachine.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCTargetMachine.cpp b/lib/Target/PowerPC/PPCTargetMachine.cpp index df3e3d2257..6d5e050773 100644 --- a/lib/Target/PowerPC/PPCTargetMachine.cpp +++ b/lib/Target/PowerPC/PPCTargetMachine.cpp @@ -96,6 +96,10 @@ PPCTargetMachine::PPCTargetMachine(const Module &M, const std::string &FS, setRelocationModel(Reloc::Static); } +/// Override this for PowerPC. Tail merging happily breaks up instruction issue +/// groups, which typically degrades performance. +const bool PPCTargetMachine::DoTailMergeDefault() const { return false; } + PPC32TargetMachine::PPC32TargetMachine(const Module &M, const std::string &FS) : PPCTargetMachine(M, FS, false) { } |