From a1cb4a58934cd52800dab5884b2058a0a49dc3cd Mon Sep 17 00:00:00 2001 From: nadolskyanton Date: Fri, 20 Jun 2025 16:24:35 +0300 Subject: [PATCH] Improve cache performance Issue: https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/ICGREC Description: improve FE perf Signed-off-by: nadolskyanton --- ets2panda/checker/types/typeRelation.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ets2panda/checker/types/typeRelation.cpp b/ets2panda/checker/types/typeRelation.cpp index 130fa19dbb..0ea6044f30 100644 --- a/ets2panda/checker/types/typeRelation.cpp +++ b/ets2panda/checker/types/typeRelation.cpp @@ -29,10 +29,6 @@ ArenaAllocator *TypeRelation::Allocator() RelationResult TypeRelation::CacheLookup(const Type *source, const Type *target, const RelationHolder &holder, RelationType type) const { - if (result_ == RelationResult::CACHE_MISS) { - return result_; - } - ES2PANDA_ASSERT(source != nullptr); ES2PANDA_ASSERT(target != nullptr); @@ -115,7 +111,7 @@ bool TypeRelation::IsIdenticalTo(IndexInfo *source, IndexInfo *target) return result_ == RelationResult::TRUE; } -bool TypeRelation::IsAssignableTo(Type *source, Type *target) +__attribute__((noinline)) bool TypeRelation::IsAssignableTo(Type *source, Type *target) { if (source == target) { return Result(true); @@ -247,7 +243,7 @@ bool TypeRelation::IsLegalBoxedPrimitiveConversion(Type *target, Type *source) return res; } -bool TypeRelation::IsSupertypeOf(Type *super, Type *sub) +__attribute__((noinline)) bool TypeRelation::IsSupertypeOf(Type *super, Type *sub) { if (LIKELY(super == sub)) { return Result(true); -- Gitee