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/gvn.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/gvn.cc')
-rw-r--r-- | compiler/optimizing/gvn.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/gvn.cc b/compiler/optimizing/gvn.cc index 39006465d5..833dfb00a1 100644 --- a/compiler/optimizing/gvn.cc +++ b/compiler/optimizing/gvn.cc @@ -264,7 +264,7 @@ class ValueSet : public ArenaObject<kArenaAllocMisc> { // odd buckets to speed up deletion. size_t HashCode(HInstruction* instruction) const { size_t hash_code = instruction->ComputeHashCode(); - if (instruction->GetSideEffects().DoesAnyRead()) { + if (instruction->GetSideEffects().HasDependencies()) { return (hash_code << 1) | 0; } else { return (hash_code << 1) | 1; |