We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 995ccb6 commit 1a27566Copy full SHA for 1a27566
src/intrinsics/mod.rs
@@ -453,11 +453,6 @@ fn codegen_regular_intrinsic_call<'tcx>(
453
fx.bcx.ins().trap(TrapCode::user(2).unwrap());
454
return Ok(());
455
}
456
- sym::likely | sym::unlikely => {
457
- intrinsic_args!(fx, args => (a); intrinsic);
458
-
459
- ret.write_cvalue(fx, a);
460
- }
461
sym::breakpoint => {
462
intrinsic_args!(fx, args => (); intrinsic);
463
@@ -1267,6 +1262,10 @@ fn codegen_regular_intrinsic_call<'tcx>(
1267
1262
);
1268
1263
1269
1264
1265
+ sym::cold_path => {
1266
+ // This is a no-op. The intrinsic is just a hint to the optimizer.
+ }
+
1270
// Unimplemented intrinsics must have a fallback body. The fallback body is obtained
1271
// by converting the `InstanceKind::Intrinsic` to an `InstanceKind::Item`.
1272
_ => {
0 commit comments