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/local_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/local_value_numbering_test.cc')
-rw-r--r-- | compiler/dex/local_value_numbering_test.cc | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/compiler/dex/local_value_numbering_test.cc b/compiler/dex/local_value_numbering_test.cc index 566527ad42..0393410867 100644 --- a/compiler/dex/local_value_numbering_test.cc +++ b/compiler/dex/local_value_numbering_test.cc @@ -158,10 +158,8 @@ class LocalValueNumberingTest : 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; |