diff options
| author | Shankar Easwaran <shankare@codeaurora.org> | 2015-03-20 23:47:03 +0000 |
|---|---|---|
| committer | Shankar Easwaran <shankare@codeaurora.org> | 2015-03-20 23:47:03 +0000 |
| commit | 07f6ce0b83ac97879e2d1010c329158ee6db17b8 (patch) | |
| tree | 1ec21b9ea0188fe9cc9c6785f25d8911f5589606 /lld/test/elf/init_array-order.test | |
| parent | 33c979d685e35ac8ac813543c0ccc70a7ec392f8 (diff) | |
| download | bcm5719-llvm-07f6ce0b83ac97879e2d1010c329158ee6db17b8.tar.gz bcm5719-llvm-07f6ce0b83ac97879e2d1010c329158ee6db17b8.zip | |
[ELF] OrderPass : Order atoms only by ordinals.
Move the init array/fini array sorting to the Output ELF writer.
AFAIK, this is only needed by the X86_64/ARM ABI.
This shaves time taken to self host lld by 0.2 seconds.
Before patch
----------------
4791.062059 task-clock # 1.634 CPUs utilized ( +- 0.28% )
61,107 context-switches # 0.013 M/sec ( +- 0.56% )
2.932902671 seconds time elapsed ( +- 0.84% )
After patch
-------------
4608.417248 task-clock # 1.669 CPUs utilized ( +- 0.30% )
61,616 context-switches # 0.013 M/sec ( +- 0.63% )
2.761012703 seconds time elapsed ( +- 0.63% )
llvm-svn: 232866
Diffstat (limited to 'lld/test/elf/init_array-order.test')
| -rw-r--r-- | lld/test/elf/init_array-order.test | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/lld/test/elf/init_array-order.test b/lld/test/elf/init_array-order.test index 1ebb24bac22..b57b3807b69 100644 --- a/lld/test/elf/init_array-order.test +++ b/lld/test/elf/init_array-order.test @@ -1,6 +1,7 @@ #RUN: yaml2obj -format=elf %s > %t #RUN: lld -flavor gnu -target x86_64-linux %t --noinhibit-exec \ -#RUN: --output-filetype=yaml | FileCheck %s +#RUN: -o %t1.out +#RUN: llvm-objdump -s %t1.out | FileCheck %s !ELF FileHeader: @@ -62,12 +63,5 @@ Symbols: Type: STT_SECTION Section: .init_array -#CHECK: defined-atoms: -#CHECK: content: [ 01, -#CHECK: section-name: .init_array.1 -#CHECK: content: [ 02, -#CHECK: section-name: .init_array.2 -#CHECK: content: [ 03, -#CHECK: section-name: .init_array.3 -#CHECK: content: [ 99, -#CHECK: section-name: .init_array +#CHECK: {{[0xa-f0-9]+}} 01000000 00000000 02000000 00000000 +#CHECK: {{[0xa-f0-9]+}} 03000000 00000000 99000000 00000000 |

