From 1bfb7f7889660519f65830d1085114d04eca920a Mon Sep 17 00:00:00 2001 From: Andrey Efremov Date: Tue, 29 Oct 2024 21:23:38 +0300 Subject: [PATCH] Improve ObjectTypePropagation: fix tests Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/IA95QG Change-Id: I3cf1d79f102c3fca4237f0395f287c0f3a3e9f2a Signed-off-by: Andrey Efremov --- tests/compiler/checks_elimination_ecma_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/compiler/checks_elimination_ecma_test.cpp b/tests/compiler/checks_elimination_ecma_test.cpp index ddcee6553..a072bcd96 100644 --- a/tests/compiler/checks_elimination_ecma_test.cpp +++ b/tests/compiler/checks_elimination_ecma_test.cpp @@ -1,5 +1,5 @@ /** - * Copyright (c) 2021-2022 Huawei Device Co., Ltd. + * Copyright (c) 2021-2025 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at @@ -770,7 +770,7 @@ TEST_F(CheckEliminationEcmaTest, EliminateHclassCheckInlined) // do something to prevent cleanup of call/return inlined INST(7, Opcode::AnyTypeCheck).any().AnyType(AnyBaseType::ECMASCRIPT_INT_TYPE).Inputs(1, 6); INST(8, Opcode::ReturnInlined).Inputs(2); - INST(9, Opcode::Return).any().Inputs(5); + INST(9, Opcode::Return).any().Inputs(7); } } @@ -818,7 +818,7 @@ TEST_F(CheckEliminationEcmaTest, EliminateHclassCheckInlined) // do something to prevent cleanup of call/return inlined INST(7, Opcode::AnyTypeCheck).any().AnyType(AnyBaseType::ECMASCRIPT_INT_TYPE).Inputs(1, 6); INST(8, Opcode::ReturnInlined).Inputs(2); - INST(9, Opcode::Return).any().Inputs(5); + INST(9, Opcode::Return).any().Inputs(7); } } EXPECT_TRUE(GraphComparator().Compare(graph, graphOpt)); -- Gitee