1
Fork 0

interpret: mark some hot functions inline(always)

recovers some of the perf regressions from #129778
This commit is contained in:
Ralf Jung 2024-09-10 15:54:47 +02:00
parent 26b2b8d162
commit d104dedad9
2 changed files with 5 additions and 0 deletions

View file

@ -433,6 +433,7 @@ impl<'tcx, Prov: Provenance> Projectable<'tcx, Prov> for ImmTy<'tcx, Prov> {
Ok(self.offset_(offset, layout, ecx))
}
#[inline(always)]
fn to_op<M: Machine<'tcx, Provenance = Prov>>(
&self,
_ecx: &InterpCx<'tcx, M>,
@ -522,6 +523,7 @@ impl<'tcx, Prov: Provenance> Projectable<'tcx, Prov> for OpTy<'tcx, Prov> {
}
}
#[inline(always)]
fn to_op<M: Machine<'tcx, Provenance = Prov>>(
&self,
_ecx: &InterpCx<'tcx, M>,