From 802ac606e7766263bb5aa46d2871f681ec06d302 Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Thu, 15 Dec 2022 18:45:33 +0000 Subject: Add irreducible loop check in CanInlineBody In aosp/2335809 we moved splitting the critical edge (aka adding the extra goto) from the builder to InlineInto. We need to also move the irreducible loop check from there to inliner.cc. Bug: 262725735 Fixes: 262725735 Test: dex2oat compiling the apps in the bug Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: I94eebfb21cd94b1199ba996d458b897b7917840e --- compiler/optimizing/optimizing_compiler_stats.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'compiler/optimizing/optimizing_compiler_stats.h') diff --git a/compiler/optimizing/optimizing_compiler_stats.h b/compiler/optimizing/optimizing_compiler_stats.h index c741b02751..100441aaff 100644 --- a/compiler/optimizing/optimizing_compiler_stats.h +++ b/compiler/optimizing/optimizing_compiler_stats.h @@ -92,7 +92,8 @@ enum class MethodCompilationStat { kNotInlinedEnvironmentBudget, kNotInlinedInstructionBudget, kNotInlinedLoopWithoutExit, - kNotInlinedIrreducibleLoop, + kNotInlinedIrreducibleLoopCallee, + kNotInlinedIrreducibleLoopCaller, kNotInlinedAlwaysThrows, kNotInlinedInfiniteLoop, kNotInlinedTryCatchCallee, -- cgit v1.2.3-59-g8ed1b