diff options
author | 2015-08-12 13:43:29 +0100 | |
---|---|---|
committer | 2015-08-12 13:43:29 +0100 | |
commit | 78e3ef6bc5f8aa149f2f8bf0c78ce854c2f910fa (patch) | |
tree | b8aa83bef462e20e2e7e09650e6c15d3a8d97fa6 /compiler/optimizing/side_effects_analysis.cc | |
parent | 6a5037eb3340e4c981fd7de3ff45167ee5b7fc82 (diff) |
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
Diffstat (limited to 'compiler/optimizing/side_effects_analysis.cc')
-rw-r--r-- | compiler/optimizing/side_effects_analysis.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |