about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/intrinsic.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2024-02-25 03:47:31 +0000
committerbors <bors@rust-lang.org>2024-02-25 03:47:31 +0000
commite9f95949138125bb1b98ed213a41b9aa825bacf5 (patch)
tree62e8ea3486b3a9c88f1435c080bb926fb8e4bc8f /compiler/rustc_codegen_llvm/src/intrinsic.rs
parent89d8e3116ccb7f55760825b731de4f4e0fd76770 (diff)
parent81d7069e342fe506baa2a8431a975ec63e9b9713 (diff)
downloadrust-e9f95949138125bb1b98ed213a41b9aa825bacf5.tar.gz
rust-e9f95949138125bb1b98ed213a41b9aa825bacf5.zip
Auto merge of #121114 - Nilstrieb:no-inline!, r=saethlin
Add `#[rustc_no_mir_inline]` for standard library UB checks

should help with #121110 and also with #120848

Because the MIR inliner cannot know whether the checks are enabled or not, so inlining is an unnecessary compile time pessimization when debug assertions are disabled. LLVM knows whether they are enabled or not, so it can optimize accordingly without wasting time.

r? `@saethlin`
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/intrinsic.rs')
0 files changed, 0 insertions, 0 deletions