mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Rollup merge of #133163 - RalfJung:cold, r=saethlin
remove pointless cold_path impl in interpreter This has a fallback impl so the interpreter impl is not needed. r? ``@saethlin``
This commit is contained in:
commit
4baf540fce
@ -1264,6 +1264,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.
|
// This is a no-op. The intrinsic is just a hint to the optimizer.
|
||||||
|
// 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
|
||||||
|
@ -417,9 +417,6 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
|
|||||||
// These just return their argument
|
// These just return their argument
|
||||||
self.copy_op(&args[0], dest)?;
|
self.copy_op(&args[0], dest)?;
|
||||||
}
|
}
|
||||||
sym::cold_path => {
|
|
||||||
// This is a no-op. The intrinsic is just a hint to the optimizer.
|
|
||||||
}
|
|
||||||
sym::raw_eq => {
|
sym::raw_eq => {
|
||||||
let result = self.raw_eq_intrinsic(&args[0], &args[1])?;
|
let result = self.raw_eq_intrinsic(&args[0], &args[1])?;
|
||||||
self.write_scalar(result, dest)?;
|
self.write_scalar(result, dest)?;
|
||||||
|
Loading…
Reference in New Issue
Block a user