From 78e3ef6bc5f8aa149f2f8bf0c78ce854c2f910fa Mon Sep 17 00:00:00 2001 From: Alexandre Rames Date: Wed, 12 Aug 2015 13:43:29 +0100 Subject: Add a GVN dependency 'GC' for garbage collection. This will be used by incoming architecture specific optimizations. The dependencies must be conservative. When an HInstruction is created we may not be sure whether it can trigger GC. In that case the 'ChangesGC' dependency must be set. We control at code-generation time that HInstructions that can call have the 'ChangesGC' dependency set. Change-Id: Iea6a7f430009f37a9599b0a0039207049906e45d --- compiler/optimizing/side_effects_analysis.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'compiler/optimizing/side_effects_analysis.cc') diff --git a/compiler/optimizing/side_effects_analysis.cc b/compiler/optimizing/side_effects_analysis.cc index 9dbf638442..1c3e255339 100644 --- a/compiler/optimizing/side_effects_analysis.cc +++ b/compiler/optimizing/side_effects_analysis.cc @@ -47,8 +47,8 @@ void SideEffectsAnalysis::Run() { inst_it.Advance()) { HInstruction* instruction = inst_it.Current(); effects = effects.Union(instruction->GetSideEffects()); - // If every possible write/read is represented, scanning further - // will not add any more information to side-effects of this block. + // If all side effects are represented, scanning further will not add any + // more information to side-effects of this block. if (effects.DoesAll()) { break; } -- cgit v1.2.3-59-g8ed1b