about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2021-02-18 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2021-02-18 00:00:00 +0000
commita3659bbe6cfc3ff3a4cd74dd0ff31ad3632534c9 (patch)
tree215f37e2fb0e37b9e6dc9f974f921ac786af6e3e /compiler/rustc_codegen_llvm/src
parent152f6609246558be5e2582e67376194815e6ba0d (diff)
downloadrust-a3659bbe6cfc3ff3a4cd74dd0ff31ad3632534c9.tar.gz
rust-a3659bbe6cfc3ff3a4cd74dd0ff31ad3632534c9.zip
Inline hot part of PatStack::head_ctor
When building rustc with `-Codegen-units=1` this inline hint ensures
that obtaining already initialized head constructor does not involve
a function call overhead and reduces the instruction count in
match-stress-enum-check full benchmark from 11.9G to 9.8G.

It shouldn't have significant impact on the currently default
configuration where it reflects existing inlining decisions.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions