diff options
author | Calin Juravle <calin@google.com> | 2015-10-12 15:01:58 +0100 |
---|---|---|
committer | Calin Juravle <calin@google.com> | 2015-10-12 18:01:14 +0100 |
commit | 2c1ffc3a06e9ed0411e29e7dc2558b5d657ede7a (patch) | |
tree | b4164b3862e372a8fb83a1910bb669dedc8664ca /compiler/optimizing/induction_var_analysis_test.cc | |
parent | 89792b9c5ed09dda2937944b69b1b2016807b6aa (diff) |
optimizing: propagate type information of arguments
This helps inlining and type check elimination.
e.g:
void foo(ArrayList a) {
int size = a.size(); // this can be inlined now.
}
Change-Id: I3ffeaa79d9df444aa19511c83c544cb5f9d9ab20
Diffstat (limited to 'compiler/optimizing/induction_var_analysis_test.cc')
-rw-r--r-- | compiler/optimizing/induction_var_analysis_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/optimizing/induction_var_analysis_test.cc b/compiler/optimizing/induction_var_analysis_test.cc index 20492e7152..19af2fb5db 100644 --- a/compiler/optimizing/induction_var_analysis_test.cc +++ b/compiler/optimizing/induction_var_analysis_test.cc @@ -78,7 +78,8 @@ class InductionVarAnalysisTest : public testing::Test { graph_->SetExitBlock(exit_); // Provide entry and exit instructions. - parameter_ = new (&allocator_) HParameterValue(0, Primitive::kPrimNot, true); + parameter_ = new (&allocator_) HParameterValue( + graph_->GetDexFile(), 0, 0, Primitive::kPrimNot, true); entry_->AddInstruction(parameter_); constant0_ = graph_->GetIntConstant(0); constant1_ = graph_->GetIntConstant(1); |