diff options
author | Vladimir Marko <vmarko@google.com> | 2015-02-24 11:32:46 +0000 |
---|---|---|
committer | Vladimir Marko <vmarko@google.com> | 2015-04-22 20:40:00 +0100 |
commit | e490b01c12d33f3bd5c247b55b47e507cc9c8fab (patch) | |
tree | 9b04b5390f0f29986d9951bdce4a2cb083113809 /compiler/dex/global_value_numbering_test.cc | |
parent | fac10700fd99516e8a14f751fe35553021ce6982 (diff) | |
download | android_art-e490b01c12d33f3bd5c247b55b47e507cc9c8fab.tar.gz android_art-e490b01c12d33f3bd5c247b55b47e507cc9c8fab.tar.bz2 android_art-e490b01c12d33f3bd5c247b55b47e507cc9c8fab.zip |
Quick: Rewrite type inference pass.
Use method signatures, field types and types embedded in dex
insns for type inference. Perform the type inference in two
phases, first a simple pass that records all types implied
by individual insns, and then an iterative pass to propagate
those types further via phi, move, if-cc and aget/aput insns.
Bug: 19419671
Change-Id: Id38579d48a44fc5eadd13780afb6d370093056f9
Diffstat (limited to 'compiler/dex/global_value_numbering_test.cc')
-rw-r--r-- | compiler/dex/global_value_numbering_test.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/dex/global_value_numbering_test.cc b/compiler/dex/global_value_numbering_test.cc index b4559ef375..c538d0beee 100644 --- a/compiler/dex/global_value_numbering_test.cc +++ b/compiler/dex/global_value_numbering_test.cc @@ -15,7 +15,6 @@ */ #include "base/logging.h" -#include "dataflow_iterator.h" #include "dataflow_iterator-inl.h" #include "dex/mir_field_info.h" #include "global_value_numbering.h" @@ -260,10 +259,8 @@ class GlobalValueNumberingTest : public testing::Test { mir->ssa_rep = &ssa_reps_[i]; mir->ssa_rep->num_uses = def->num_uses; mir->ssa_rep->uses = const_cast<int32_t*>(def->uses); // Not modified by LVN. - mir->ssa_rep->fp_use = nullptr; // Not used by LVN. mir->ssa_rep->num_defs = def->num_defs; mir->ssa_rep->defs = const_cast<int32_t*>(def->defs); // Not modified by LVN. - mir->ssa_rep->fp_def = nullptr; // Not used by LVN. mir->dalvikInsn.opcode = def->opcode; mir->offset = i; // LVN uses offset only for debug output mir->optimization_flags = 0u; |