• Home
  • Raw
  • Download

Lines Matching refs:graph

142   PassObserver(HGraph* graph,  in PassObserver()  argument
147 : graph_(graph), in PassObserver()
151 disasm_info_(graph->GetArena()), in PassObserver()
155 visualizer_(&visualizer_oss_, graph, *codegen), in PassObserver()
347 void RunOptimizations(HGraph* graph,
387 void MaybeRunInliner(HGraph* graph,
395 HGraph* graph,
462 HGraph* graph, in BuildOptimization() argument
474 return new (arena) BoundsCheckElimination(graph, in BuildOptimization()
479 return new (arena) GVNOptimization(graph, *most_recent_side_effects, pass_name.c_str()); in BuildOptimization()
481 return new (arena) HConstantFolding(graph, pass_name.c_str()); in BuildOptimization()
483 return new (arena) HDeadCodeElimination(graph, stats, pass_name.c_str()); in BuildOptimization()
486 return new (arena) HInliner(graph, // outer_graph in BuildOptimization()
487 graph, // outermost_graph in BuildOptimization()
498 return new (arena) HSharpening(graph, codegen, dex_compilation_unit, driver, handles); in BuildOptimization()
500 return new (arena) HSelectGenerator(graph, stats); in BuildOptimization()
502 return new (arena) HInductionVarAnalysis(graph); in BuildOptimization()
504 return new (arena) InstructionSimplifier(graph, codegen, driver, stats, pass_name.c_str()); in BuildOptimization()
506 return new (arena) IntrinsicsRecognizer(graph, stats); in BuildOptimization()
509 return new (arena) LICM(graph, *most_recent_side_effects, stats); in BuildOptimization()
511 return new (arena) LoadStoreAnalysis(graph); in BuildOptimization()
515 return new (arena) LoadStoreElimination(graph, *most_recent_side_effects, *most_recent_lsa); in BuildOptimization()
517 return new (arena) SideEffectsAnalysis(graph); in BuildOptimization()
519 return new (arena) HLoopOptimization(graph, driver, most_recent_induction); in BuildOptimization()
521 return new (arena) CHAGuardOptimization(graph); in BuildOptimization()
523 return new (arena) CodeSinking(graph, stats); in BuildOptimization()
526 return new (arena) arm::InstructionSimplifierArm(graph, stats); in BuildOptimization()
530 return new (arena) arm64::InstructionSimplifierArm64(graph, stats); in BuildOptimization()
534 return new (arena) mips::PcRelativeFixups(graph, codegen, stats); in BuildOptimization()
538 return new (arena) x86::PcRelativeFixups(graph, codegen, stats); in BuildOptimization()
540 return new (arena) x86::X86MemoryOperandGeneration(graph, codegen, stats); in BuildOptimization()
549 HGraph* graph, in BuildOptimizations() argument
566 graph, in BuildOptimizations()
599 void OptimizingCompiler::MaybeRunInliner(HGraph* graph, in MaybeRunInliner() argument
612 HInliner* inliner = new (graph->GetArena()) HInliner( in MaybeRunInliner()
613 graph, // outer_graph in MaybeRunInliner()
614 graph, // outermost_graph in MaybeRunInliner()
630 HGraph* graph, in RunArchOptimizations() argument
635 ArenaAllocator* arena = graph->GetArena(); in RunArchOptimizations()
641 new (arena) arm::InstructionSimplifierArm(graph, stats); in RunArchOptimizations()
642 SideEffectsAnalysis* side_effects = new (arena) SideEffectsAnalysis(graph); in RunArchOptimizations()
643 GVNOptimization* gvn = new (arena) GVNOptimization(graph, *side_effects, "GVN$after_arch"); in RunArchOptimizations()
645 new (arena) HInstructionScheduling(graph, instruction_set, codegen); in RunArchOptimizations()
659 new (arena) arm64::InstructionSimplifierArm64(graph, stats); in RunArchOptimizations()
660 SideEffectsAnalysis* side_effects = new (arena) SideEffectsAnalysis(graph); in RunArchOptimizations()
661 GVNOptimization* gvn = new (arena) GVNOptimization(graph, *side_effects, "GVN$after_arch"); in RunArchOptimizations()
663 new (arena) HInstructionScheduling(graph, instruction_set); in RunArchOptimizations()
677 new (arena) mips::PcRelativeFixups(graph, codegen, stats); in RunArchOptimizations()
688 new (arena) x86::PcRelativeFixups(graph, codegen, stats); in RunArchOptimizations()
690 new (arena) x86::X86MemoryOperandGeneration(graph, codegen, stats); in RunArchOptimizations()
702 new (arena) x86::X86MemoryOperandGeneration(graph, codegen, stats); in RunArchOptimizations()
716 static void AllocateRegisters(HGraph* graph, in AllocateRegisters() argument
723 PrepareForRegisterAllocation(graph).Run(); in AllocateRegisters()
725 SsaLivenessAnalysis liveness(graph, codegen); in AllocateRegisters()
732 RegisterAllocator::Create(graph->GetArena(), codegen, liveness, strategy)->AllocateRegisters(); in AllocateRegisters()
736 void OptimizingCompiler::RunOptimizations(HGraph* graph, in RunOptimizations() argument
743 ArenaAllocator* arena = graph->GetArena(); in RunOptimizations()
748 graph, in RunOptimizations()
759 graph, stats, "dead_code_elimination$initial"); in RunOptimizations()
761 graph, stats, "dead_code_elimination$after_inlining"); in RunOptimizations()
763 graph, stats, "dead_code_elimination$final"); in RunOptimizations()
764 HConstantFolding* fold1 = new (arena) HConstantFolding(graph, "constant_folding"); in RunOptimizations()
766 graph, codegen, driver, stats); in RunOptimizations()
767 HSelectGenerator* select_generator = new (arena) HSelectGenerator(graph, stats); in RunOptimizations()
769 graph, "constant_folding$after_inlining"); in RunOptimizations()
770 HConstantFolding* fold3 = new (arena) HConstantFolding(graph, "constant_folding$after_bce"); in RunOptimizations()
772 graph, "side_effects$before_gvn"); in RunOptimizations()
774 graph, "side_effects$before_lse"); in RunOptimizations()
775 GVNOptimization* gvn = new (arena) GVNOptimization(graph, *side_effects1); in RunOptimizations()
776 LICM* licm = new (arena) LICM(graph, *side_effects1, stats); in RunOptimizations()
777 HInductionVarAnalysis* induction = new (arena) HInductionVarAnalysis(graph); in RunOptimizations()
778 …BoundsCheckElimination* bce = new (arena) BoundsCheckElimination(graph, *side_effects1, induction); in RunOptimizations()
779 HLoopOptimization* loop = new (arena) HLoopOptimization(graph, driver, induction); in RunOptimizations()
780 LoadStoreAnalysis* lsa = new (arena) LoadStoreAnalysis(graph); in RunOptimizations()
781 LoadStoreElimination* lse = new (arena) LoadStoreElimination(graph, *side_effects2, *lsa); in RunOptimizations()
783 graph, codegen, dex_compilation_unit, driver, handles); in RunOptimizations()
785 graph, codegen, driver, stats, "instruction_simplifier$after_inlining"); in RunOptimizations()
787 graph, codegen, driver, stats, "instruction_simplifier$after_bce"); in RunOptimizations()
789 graph, codegen, driver, stats, "instruction_simplifier$before_codegen"); in RunOptimizations()
790 IntrinsicsRecognizer* intrinsics = new (arena) IntrinsicsRecognizer(graph, stats); in RunOptimizations()
791 CHAGuardOptimization* cha_guard = new (arena) CHAGuardOptimization(graph); in RunOptimizations()
792 CodeSinking* code_sinking = new (arena) CodeSinking(graph, stats); in RunOptimizations()
803 MaybeRunInliner(graph, codegen, driver, dex_compilation_unit, pass_observer, handles); in RunOptimizations()
833 RunArchOptimizations(driver->GetInstructionSet(), graph, codegen, pass_observer); in RunOptimizations()
938 HGraph* graph = new (arena) HGraph( in TryCompile() local
957 graph->SetArtMethod(method); in TryCompile()
963 CodeGenerator::Create(graph, in TryCompile()
975 PassObserver pass_observer(graph, in TryCompile()
984 HGraphBuilder builder(graph, in TryCompile()
1018 RunOptimizations(graph, in TryCompile()
1027 AllocateRegisters(graph, codegen.get(), &pass_observer, regalloc_strategy); in TryCompile()