llvm-project/bolt/test/X86
Vladislav Khmelevsky 08f56926c2 [BOLT] Move disassemble optimizations to optimization passes
Summary:
The patch moves the shortenInstructions and nop remove to separate binary
passes. As a result when llvm-bolt optimizations stage will begin the
instructions of the binary functions will be absolutely the same as it
was in the binary. This is needed for the golang support by llvm-bolt.
Some of the tests must be changed, since bb alignment nops might create
unreachable BBs in original functions.

Vladislav Khmelevsky,
Advanced Software Technology Lab, Huawei

(cherry picked from FBD32896517)
2021-12-18 17:03:35 -08:00
..
Inputs [BOLT] Move disassemble optimizations to optimization passes 2021-12-18 17:03:35 -08:00
R_X86_64_64.pic.lld.cpp [BOLT][TEST] Imported small tests 2021-09-28 15:47:51 -07:00
asm-dump.c [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
asm-func-debug.test [PR] Fix update-debug-sections for AArch64 2021-12-08 16:53:38 +03:00
avx512-trap.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
bad-exe.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
bb-with-two-tail-calls.s [BOLT] Add pass to normalize CFG 2021-12-01 13:57:50 -08:00
block-reordering.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
bolt-info.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
branch-data.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
bug-reorder-bb-jrcxz.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
call-zero.s [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
cfi-expr-rewrite.s [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
cfi-instrs-count.s [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
cfi-instrs-reordered.s [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
ctc-and-unreachable.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
debug-fission-single.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
double-jump.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
exceptions-args.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
fallthrough-to-noop.test [BOLT][TEST] Import small tests 2021-11-03 17:09:49 -07:00
false-jump-table.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
icf-jump-tables.test [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
indirect-goto.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
inline-debug-info.test [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
inlined-function-mixed.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
internal-call-instrument.s [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
interprocedural-ref-entry-point.s [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
invalid-profile.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
issue20.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
issue20.test Avoid removing BBs referenced by JTs 2018-07-03 17:02:33 -07:00
issue26.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
issue26.test [BOLT] Change symbol handling for secondary function entries 2020-04-19 22:29:54 -07:00
jmp-optimization.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
jmpjmp.test [BOLT][TEST] Imported small tests 2021-10-06 16:20:00 -07:00
jump-table-footprint-reduction.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
jump-table-icp.test [BOLT][TEST] Import jump-table-icp.test, update link_fdata script 2021-11-08 10:56:21 -08:00
jump-table-reference.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
layout-heuristic.test [BOLT] Move disassemble optimizations to optimization passes 2021-12-18 17:03:35 -08:00
line-number.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
lit.local.cfg [PR][BOLT][TEST] Fix tests 2021-10-11 11:15:08 +03:00
loop-inversion-pass.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
loop-nest.test [BOLT][TEST] Import small tests 2021-11-11 14:28:46 -08:00
no-entry-reordering.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
no-output.test [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
no-relocs.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
pie.test [BOLT][TEST] Imported small tests 2021-10-08 13:39:24 -07:00
plt-sec-8-byte.test [BOLT] Support PLT sections with variable entry sizes 2021-07-14 01:35:34 -07:00
plt-sec.test [BOLT] Support PLT sections with variable entry sizes 2021-07-14 01:35:34 -07:00
pre-aggregated-perf.test [BOLT] Move disassemble optimizations to optimization passes 2021-12-18 17:03:35 -08:00
re-optimize.test [BOLT][TEST] Imported small tests 2021-10-08 14:33:33 -07:00
reader.test [BOLT][TEST] Imported small tests 2021-10-07 13:38:58 -07:00
relaxed-tailcall.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
remove-unused.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
rodata-simpl-loads.test [BOLT][TEST] Import small tests 2021-11-11 14:28:46 -08:00
sctc-bug.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
sctc-bug2.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
sctc-bug3.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
sctc-bug4.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
shared-object.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
shorten-mov.test [BOLT] Move disassemble optimizations to optimization passes 2021-12-18 17:03:35 -08:00
shrinkwrapping-critedge.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
shrinkwrapping-insertcfi.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
shrinkwrapping-pop-order.s [PR] Fix ShrinkWrapping pop order 2021-11-14 02:23:20 +03:00
shrinkwrapping-popf.s Fix frameopt crash when processing POPF 2021-12-15 13:29:46 -08:00
shrinkwrapping.test [BOLT][TEST] Imported small tests 2021-10-08 18:23:32 -07:00
split-func-icf.s [BOLT] Split functions: support fragments with multiple parents 2021-12-01 21:14:56 -08:00
split-func-jump-table-fragment-noparent.s [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
split-func-jump-table-fragment-reverse.s [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
split-func-jump-table-fragment.s [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
srol-bug.test [BOLT] Add initial bolt-only test infra 2018-06-22 13:50:07 -07:00
static-exe.test [BOLT][TEST] Rename tests to follow standard naming scheme 2021-11-04 13:36:15 -07:00
symtab-secondary-entries.test [BOLT][TEST] Import small tests 2021-11-12 15:38:45 -08:00
tail-duplication-cacheline.s [BOLT] Tail Duplication: skip unreachable blocks 2021-11-24 16:13:42 -08:00
tail-duplication-complex.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
tail-duplication-jt.s [BOLT] Tail Duplication: fix jump table check 2021-11-24 15:39:24 -08:00
tail-duplication-pass.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00
tail-duplication-prop-bug.s [BOLT] Tail duplication: disable const/copy propagation by default as a workaround 2021-12-01 14:05:05 -08:00
tailcall-traps.test [BOLT] Fix tailcall-traps and basic-instr tests on ubuntu 2021-11-17 15:38:36 -08:00
tailcall.test [BOLT][TEST] Imported small tests 2021-10-08 18:23:32 -07:00
unreachable.test [BOLT][TEST] Import small tests 2021-11-12 15:38:45 -08:00
vararg.test [BOLT][TEST] Reduce vararg.test 2021-11-11 20:05:09 -08:00
zero-sized-object.s [BOLT][TEST] Remove dependence on host_cc and host_cxx 2021-09-22 15:53:38 -07:00