From 8f6b99fba2d043265a84d599a967d52f66738ad6 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Tue, 28 Sep 2021 17:51:17 +0000 Subject: Revert "ART: Removes SuspendCheck for plain loops with a low trip count." This reverts commit 3de02fb67de386368c9fe39ab5a0133afcf1d785. Reason for revert: b/201413752 Change-Id: I8a3a56cfb81fa88f49992615696260dfbc79bb67 --- compiler/optimizing/nodes.h | 7 ------- 1 file changed, 7 deletions(-) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index 94eae4d937..06fb88e837 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -675,13 +675,6 @@ class HGraph : public ArenaObject { return cha_single_implementation_list_; } - // In case of OSR we intend to use SuspendChecks as an entry point to the - // function; for debuggable graphs we might deoptimize to interpreter from - // SuspendChecks. In these cases we shouldn't remove them. - bool SuspendChecksAreAllowedToBeRemoved() const { - return !IsDebuggable() && !IsCompilingOsr(); - } - void AddCHASingleImplementationDependency(ArtMethod* method) { cha_single_implementation_list_.insert(method); } -- cgit v1.2.3-59-g8ed1b