aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-06-01 23:02:45 +0000
committerDale Johannesen <dalej@apple.com>2007-06-01 23:02:45 +0000
commita5a2117a4659ecadbec9476f2e537bcb7501b509 (patch)
treef2514b99ff19042b85cb4f1e2d8bd28c682e9f46 /test
parente770787be101e522425f658f76e4bb3091498f99 (diff)
downloadexternal_llvm-a5a2117a4659ecadbec9476f2e537bcb7501b509.zip
external_llvm-a5a2117a4659ecadbec9476f2e537bcb7501b509.tar.gz
external_llvm-a5a2117a4659ecadbec9476f2e537bcb7501b509.tar.bz2
Implement smarter algorithm for choosing which blocks to tail-merge.
See test/CodeGen/X86/test-pic-jtbl.ll for a case where it works well; shaves another 10K off our favorite benchmark. I was hesitant about this because of compile speed, but seems to do OK on a bootstrap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37392 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/test-pic-jtbl.ll5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/CodeGen/X86/test-pic-jtbl.ll b/test/CodeGen/X86/test-pic-jtbl.ll
index d2b8cc3..1afa4ca 100644
--- a/test/CodeGen/X86/test-pic-jtbl.ll
+++ b/test/CodeGen/X86/test-pic-jtbl.ll
@@ -2,10 +2,9 @@
; RUN: -o %t -f
; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
; RUN: grep piclabel %t | wc -l | grep 3
-; RUN: grep PLT %t | wc -l | grep 11
+; RUN: grep PLT %t | wc -l | grep 6
; RUN: grep GOTOFF %t | wc -l | grep 1
-; RUN: grep JTI %t | wc -l | grep 13
-; Improved tail merging could reduce the number of PLT's and JTI's further.
+; RUN: grep JTI %t | wc -l | grep 8
define void @bar(i32 %n.u) {
entry: