mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Make the cold_path intrinsic mark the current block as cold
This commit is contained in:
parent
cb51cfe3d0
commit
1c372caa33
@ -1270,8 +1270,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
|
|||||||
}
|
}
|
||||||
|
|
||||||
sym::cold_path => {
|
sym::cold_path => {
|
||||||
// This is a no-op. The intrinsic is just a hint to the optimizer.
|
fx.bcx.set_cold_block(fx.bcx.current_block().unwrap());
|
||||||
// We still have an impl here to avoid it being turned into a call.
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Unimplemented intrinsics must have a fallback body. The fallback body is obtained
|
// Unimplemented intrinsics must have a fallback body. The fallback body is obtained
|
||||||
|
Loading…
Reference in New Issue
Block a user