From 21c7e6fbcabef2f22b467e1e89f4abe1aa43e459 Mon Sep 17 00:00:00 2001 From: Artem Serov Date: Thu, 27 Jul 2017 16:04:42 +0100 Subject: ART: Fix SimplifyInduction for an instruction with HEnvironment. After an instruction is removed during RemoveFromCycle its environment isn't properly cleaned: it still has input instructions present and registered (those instructions still hold records for that). Test: test-art-target, test-art-host. Change-Id: Iea315bdf735d75fe477f43671f05b40dfecc63a8 --- compiler/optimizing/nodes.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler/optimizing/nodes.h') diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h index fa29378e42..e4431422b2 100644 --- a/compiler/optimizing/nodes.h +++ b/compiler/optimizing/nodes.h @@ -7059,6 +7059,10 @@ inline HInstruction* HuntForDeclaration(HInstruction* instruction) { return instruction; } +void RemoveEnvironmentUses(HInstruction* instruction); +bool HasEnvironmentUsedByOthers(HInstruction* instruction); +void ResetEnvironmentInputRecords(HInstruction* instruction); + } // namespace art #endif // ART_COMPILER_OPTIMIZING_NODES_H_ -- cgit v1.2.3-59-g8ed1b