diff options
| author | 2017-07-27 16:04:42 +0100 | |
|---|---|---|
| committer | 2017-08-01 11:35:23 +0100 | |
| commit | 21c7e6fbcabef2f22b467e1e89f4abe1aa43e459 (patch) | |
| tree | 1a62fe2485d9642ee3d8768c6edd005278b1014f /compiler/optimizing/nodes.h | |
| parent | 2e53f8f69f8c4175085e337445ec42aa045a2f7f (diff) | |
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
Diffstat (limited to 'compiler/optimizing/nodes.h')
| -rw-r--r-- | compiler/optimizing/nodes.h | 4 |
1 files changed, 4 insertions, 0 deletions
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_ |