interpret: mark some hot functions inline(always)
recovers some of the perf regressions from #129778
This commit is contained in:
parent
26b2b8d162
commit
d104dedad9
2 changed files with 5 additions and 0 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue