mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-24 14:20:17 +00:00
dcfa2ab534
To reduce memory footprint changed so that we process and write out TUs first, reset DIEBuilder and process CUs. CUs are processed in buckets. First bucket contains all the CUs with cross CU references. Rest processd one at a time. clang-17 build in debug mode, by clang-17. before 8:25.81 real, 834.37 user, 86.03 sys, 0 amem, 79525064 mmem 8:02.20 real, 820.46 user, 81.81 sys, 0 amem, 79501616 mmem 7:52.69 real, 802.01 user, 83.99 sys, 0 amem, 79534392 mmem after 7:49.35 real, 822.04 user, 66.19 sys, 0 amem, 34934260 mmem 7:42.16 real, 825.46 user, 63.52 sys, 0 amem, 34951660 mmem 7:46.71 real, 821.11 user, 63.14 sys, 0 amem, 34981164 mmem Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D151909
26 lines
1.2 KiB
Plaintext
26 lines
1.2 KiB
Plaintext
# REQUIRES: system-linux
|
|
|
|
# RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-cross-reference-different-abbrev-dst.s -o %t.o
|
|
# RUN: llvm-mc -dwarf-version=4 -filetype=obj -triple x86_64-unknown-linux %p/Inputs/dwarf4-cross-reference-different-abbrev-src.s -o %t1.o
|
|
# RUN: %clang %cflags -gdwarf-4 %t.o %t1.o -o %t.exe
|
|
# RUN: llvm-bolt %t.exe -o %t.bolt --update-debug-sections
|
|
# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.exe | FileCheck --check-prefix=PRECHECK %s
|
|
# RUN: llvm-dwarfdump --show-form --verbose --debug-info %t.bolt | FileCheck --check-prefix=POSTCHECK %s
|
|
|
|
# This test checks that BOLT handles backward cross CU references for dwarf4
|
|
# when CUs are have different abbrev tables.
|
|
|
|
# PRECHECK: DW_TAG_compile_unit
|
|
# PRECHECK: DW_TAG_compile_unit
|
|
# PRECHECK: DW_AT_abstract_origin [DW_FORM_ref_addr]
|
|
# PRECHECK-SAME: "inlined"
|
|
# PRECHECK: DW_AT_abstract_origin [DW_FORM_ref_addr]
|
|
# PRECHECK-SAME: "var"
|
|
|
|
# POSTCHECK: DW_TAG_compile_unit
|
|
# POSTCHECK: DW_AT_abstract_origin [DW_FORM_ref_addr]
|
|
# POSTCHECK-SAME: "inlined"
|
|
# POSTCHECK: DW_AT_abstract_origin [DW_FORM_ref_addr]
|
|
# POSTCHECK-SAME: "var"
|
|
# POSTCHECK: DW_TAG_compile_unit
|