Miscellaneous inlining improvements

Add `#[inline]` to a few trivial non-generic methods from a perf report
that otherwise wouldn't be candidates for inlining.
This commit is contained in:
Tomasz Miąsko
2022-07-07 00:00:00 +00:00
parent 3e51277fe6
commit 87374de3ad
8 changed files with 13 additions and 0 deletions

View File

@@ -1126,6 +1126,7 @@ impl<'tcx> TypeVisitable<'tcx> for ty::Predicate<'tcx> {
self.outer_exclusive_binder() > binder
}
#[inline]
fn has_type_flags(&self, flags: ty::TypeFlags) -> bool {
self.flags().intersects(flags)
}