summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2017-08-17 23:38:41 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2017-08-17 23:38:41 +0000
commitc0541dfa3e8b6e047e11edba3d6f9bc134dbb1a8 (patch)
tree913ebb6143ea6da58eeec33fb0a95389f857f450 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent1fae3ae6f0e82a1c174ec5dc19ca9bf43418efa9 (diff)
downloadbcm5719-llvm-c0541dfa3e8b6e047e11edba3d6f9bc134dbb1a8.tar.gz
bcm5719-llvm-c0541dfa3e8b6e047e11edba3d6f9bc134dbb1a8.zip
Increase tail dup threshold for -O3 from 3 to 4.
We see a modest performance improvement from this slightly higher tail dup threshold. Differential Revision: https://reviews.llvm.org/D36775 llvm-svn: 311139
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index 374b3079c34..65330308dad 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
@@ -143,7 +143,7 @@ static cl::opt<unsigned> TailDupPlacementAggressiveThreshold(
"tail-dup-placement-aggressive-threshold",
cl::desc("Instruction cutoff for aggressive tail duplication during "
"layout. Used at -O3. Tail merging during layout is forced to "
- "have a threshold that won't conflict."), cl::init(3),
+ "have a threshold that won't conflict."), cl::init(4),
cl::Hidden);
// Heuristic for tail duplication.
OpenPOWER on IntegriCloud