about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-10-13 10:19:30 +0000
committerbors <bors@rust-lang.org>2020-10-13 10:19:30 +0000
commit2d6eccdb67aef48d0804cb473536b925f61a7f18 (patch)
tree5478fee9f3a0243bbe4974013ecc73afdf2bc29e /compiler/rustc_codegen_llvm/src
parente8529c79cce76b47b7b61060db36cf8201c688a3 (diff)
parent0d27b765a6bd4abaa2787d13fbd438d35bcedf8c (diff)
downloadrust-2d6eccdb67aef48d0804cb473536b925f61a7f18.tar.gz
rust-2d6eccdb67aef48d0804cb473536b925f61a7f18.zip
Auto merge of #77755 - bugadani:perf-calc-dtor, r=ecstatic-morse
Monomorphize `calculate_dtor` instead of using function pointers

Change `calculate_dtor` to avoid dynamic dispatching. This change allows the empty functions to be optimized away.

Based on the discussion in https://github.com/rust-lang/rust/pull/77754#discussion_r502498970, the performance impact of this change was measured.

Perf run results: https://perf.rust-lang.org/compare.html?start=7bc5839e99411aad9061a632b62075d1346cbb3b&end=ffec759ae9bbc4d6d2235ff40ade6723a85bc7cc
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions