summaryrefslogtreecommitdiff
path: root/compiler/optimizing/licm_test.cc
diff options
context:
space:
mode:
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
commit2c1ffc3a06e9ed0411e29e7dc2558b5d657ede7a (patch)
treeb4164b3862e372a8fb83a1910bb669dedc8664ca /compiler/optimizing/licm_test.cc
parent89792b9c5ed09dda2937944b69b1b2016807b6aa (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/licm_test.cc')
-rw-r--r--compiler/optimizing/licm_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/licm_test.cc b/compiler/optimizing/licm_test.cc
index 558892d01c..a036bd5aa9 100644
--- a/compiler/optimizing/licm_test.cc
+++ b/compiler/optimizing/licm_test.cc
@@ -61,7 +61,7 @@ class LICMTest : public testing::Test {
loop_body_->AddSuccessor(loop_header_);
// Provide boiler-plate instructions.
- parameter_ = new (&allocator_) HParameterValue(0, Primitive::kPrimNot);
+ parameter_ = new (&allocator_) HParameterValue(graph_->GetDexFile(), 0, 0, Primitive::kPrimNot);
entry_->AddInstruction(parameter_);
constant_ = graph_->GetIntConstant(42);
loop_preheader_->AddInstruction(new (&allocator_) HGoto());