diff options
author | 2018-06-28 17:30:16 +0100 | |
---|---|---|
committer | 2018-06-28 17:55:01 +0100 | |
commit | bb089b6bf850c87e0e42917a383cc7298dcb09c5 (patch) | |
tree | 9076775ab1a00bf7321a6b4a457ddd81f20c10c1 /compiler/optimizing/instruction_simplifier.cc | |
parent | b5271dd44a30f498689e503340d3c8d01bf31f07 (diff) |
Remove CompilerDriver::support_boot_image_fixup_.
Check for non-PIC boot image as a testing config instead.
Honor the config for HInvokeStaticOrDirect sharpening.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Change-Id: I3645f4fefe322f1fd64ea88a2b41a35ceccea688
Diffstat (limited to 'compiler/optimizing/instruction_simplifier.cc')
-rw-r--r-- | compiler/optimizing/instruction_simplifier.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/compiler/optimizing/instruction_simplifier.cc b/compiler/optimizing/instruction_simplifier.cc index c979a5a56c..70af49f8f0 100644 --- a/compiler/optimizing/instruction_simplifier.cc +++ b/compiler/optimizing/instruction_simplifier.cc @@ -36,11 +36,9 @@ class InstructionSimplifierVisitor : public HGraphDelegateVisitor { public: InstructionSimplifierVisitor(HGraph* graph, CodeGenerator* codegen, - CompilerDriver* compiler_driver, OptimizingCompilerStats* stats) : HGraphDelegateVisitor(graph), codegen_(codegen), - compiler_driver_(compiler_driver), stats_(stats) {} bool Run(); @@ -127,7 +125,6 @@ class InstructionSimplifierVisitor : public HGraphDelegateVisitor { void SimplifyAbs(HInvoke* invoke, DataType::Type type); CodeGenerator* codegen_; - CompilerDriver* compiler_driver_; OptimizingCompilerStats* stats_; bool simplification_occurred_ = false; int simplifications_at_current_position_ = 0; @@ -144,7 +141,7 @@ bool InstructionSimplifier::Run() { visitor.VisitReversePostOrder(); } - InstructionSimplifierVisitor visitor(graph_, codegen_, compiler_driver_, stats_); + InstructionSimplifierVisitor visitor(graph_, codegen_, stats_); return visitor.Run(); } @@ -2309,7 +2306,7 @@ void InstructionSimplifierVisitor::SimplifySystemArrayCopy(HInvoke* instruction) // the invoke, as we would need to look it up in the current dex file, and it // is unlikely that it exists. The most usual situation for such typed // arraycopy methods is a direct pointer to the boot image. - HSharpening::SharpenInvokeStaticOrDirect(invoke, codegen_, compiler_driver_); + HSharpening::SharpenInvokeStaticOrDirect(invoke, codegen_); } } } |