llvm-project/llvm/test/Transforms/ThinLTOBitcodeWriter
Sami Tolvanen 9a74c753fe [ThinLTO][MC] Use conditional assignments for promotion aliases
Inline assembly refererences to static functions with ThinLTO+CFI were
fixed in D104058 by creating aliases for promoted functions. Creating
the aliases unconditionally resulted in an unexpected size increase in
a Chrome helper binary:

https://bugs.chromium.org/p/chromium/issues/detail?id=1261715

This is caused by the compiler being unable to drop unused code now
referenced by the alias in module-level inline assembly. This change
adds a .set_conditional assembly extension, which emits an assignment
only if the target symbol is also emitted, avoiding phantom references
to functions that could have otherwise been dropped.

This is an alternative to the solution proposed in D112761.

Reviewed By: pcc, nickdesaulniers, MaskRay

Differential Revision: https://reviews.llvm.org/D113613
2021-12-10 12:21:37 -08:00
..
x86
associated.ll
cfi-debug-info-cloned-type-references-global-value.ll
cfi-functions-canonical-jump-tables.ll
cfi-icall-static-inline-asm.ll [ThinLTO][MC] Use conditional assignments for promotion aliases 2021-12-10 12:21:37 -08:00
circular-reference.ll
comdat.ll
filter-alias.ll
function-alias.ll
new-pm.ll
no-type-md.ll
pr33536.ll
split-dsolocal.ll
split-internal-typeid.ll
split-internal1.ll
split-internal2.ll ThinLTO: Fix inline assembly references to static functions with CFI 2021-08-03 11:35:30 -07:00
split-used.ll
split-vfunc-internal.ll ThinLTO: Fix inline assembly references to static functions with CFI 2021-08-03 11:35:30 -07:00
split-vfunc.ll
split.ll
symver.ll
unsplittable.ll