File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -453,11 +453,6 @@ fn codegen_regular_intrinsic_call<'tcx>(
453
453
fx. bcx . ins ( ) . trap ( TrapCode :: user ( 2 ) . unwrap ( ) ) ;
454
454
return Ok ( ( ) ) ;
455
455
}
456
- sym:: likely | sym:: unlikely => {
457
- intrinsic_args ! ( fx, args => ( a) ; intrinsic) ;
458
-
459
- ret. write_cvalue ( fx, a) ;
460
- }
461
456
sym:: breakpoint => {
462
457
intrinsic_args ! ( fx, args => ( ) ; intrinsic) ;
463
458
@@ -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.
1267
+ }
1268
+
1270
1269
// Unimplemented intrinsics must have a fallback body. The fallback body is obtained
1271
1270
// by converting the `InstanceKind::Intrinsic` to an `InstanceKind::Item`.
1272
1271
_ => {
You can’t perform that action at this time.
0 commit comments