/art/compiler/optimizing/ |
D | licm_test.cc | 127 EXPECT_EQ(get_field->GetBlock(), loop_body_); in TEST_F() 128 EXPECT_EQ(set_field->GetBlock(), loop_body_); in TEST_F() 130 EXPECT_EQ(get_field->GetBlock(), loop_preheader_); in TEST_F() 131 EXPECT_EQ(set_field->GetBlock(), loop_body_); in TEST_F() 161 EXPECT_EQ(get_field->GetBlock(), loop_body_); in TEST_F() 162 EXPECT_EQ(set_field->GetBlock(), loop_body_); in TEST_F() 164 EXPECT_EQ(get_field->GetBlock(), loop_body_); in TEST_F() 165 EXPECT_EQ(set_field->GetBlock(), loop_body_); in TEST_F() 181 EXPECT_EQ(get_array->GetBlock(), loop_body_); in TEST_F() 182 EXPECT_EQ(set_array->GetBlock(), loop_body_); in TEST_F() [all …]
|
D | instruction_simplifier_shared.cc | 76 ArenaAllocator* arena = mul->GetBlock()->GetGraph()->GetArena(); in TrySimpleMultiplyAccumulatePatterns() 80 mul->GetBlock()->ReplaceAndRemoveInstructionWith(mul, mulacc); in TrySimpleMultiplyAccumulatePatterns() 81 input_binop->GetBlock()->RemoveInstruction(input_binop); in TrySimpleMultiplyAccumulatePatterns() 106 ArenaAllocator* arena = mul->GetBlock()->GetGraph()->GetArena(); in TryCombineMultiplyAccumulate() 144 binop->GetBlock()->ReplaceAndRemoveInstructionWith(binop, mulacc); in TryCombineMultiplyAccumulate() 146 mul->GetBlock()->RemoveInstruction(mul); in TryCombineMultiplyAccumulate() 153 mul->GetBlock()->GetGraph()->GetConstant(type, 0), in TryCombineMultiplyAccumulate() 157 use->GetBlock()->ReplaceAndRemoveInstructionWith(use, mulacc); in TryCombineMultiplyAccumulate() 159 mul->GetBlock()->RemoveInstruction(mul); in TryCombineMultiplyAccumulate() 217 HBitwiseNegatedRight* neg_op = new (hnot->GetBlock()->GetGraph()->GetArena()) in TryMergeNegatedInput() [all …]
|
D | instruction_simplifier.cc | 173 left_neg->GetBlock()->RemoveInstruction(left_neg); in TryMoveNegOnInputsAfterBinop() 174 right_neg->GetBlock()->RemoveInstruction(right_neg); in TryMoveNegOnInputsAfterBinop() 176 binop->GetBlock()->InsertInstructionBefore(neg, binop->GetNext()); in TryMoveNegOnInputsAfterBinop() 208 left->GetBlock()->RemoveInstruction(left); in TryDeMorganNegationFactoring() 209 right->GetBlock()->RemoveInstruction(right); in TryDeMorganNegationFactoring() 225 op->GetBlock()->InsertInstructionBefore(hbin, op); in TryDeMorganNegationFactoring() 226 op->GetBlock()->ReplaceAndRemoveInstructionWith(op, hnot); in TryDeMorganNegationFactoring() 251 instruction->GetBlock()->RemoveInstruction(instruction); in VisitShift() 267 op->GetBlock()->ReplaceAndRemoveInstructionWith(op, ror); in ReplaceRotateWithRor() 269 ushr->GetBlock()->RemoveInstruction(ushr); in ReplaceRotateWithRor() [all …]
|
D | constant_folding.cc | 93 inst->GetBlock()->RemoveInstruction(inst); in VisitUnaryOperation() 103 inst->GetBlock()->RemoveInstruction(inst); in VisitBinaryOperation() 116 inst->GetBlock()->RemoveInstruction(inst); in VisitTypeConversion() 125 inst->GetBlock()->RemoveInstruction(inst); in VisitDivZeroCheck() 139 instruction->GetBlock()->RemoveInstruction(instruction); in VisitShift() 151 instruction->GetBlock()->RemoveInstruction(instruction); in VisitAbove() 163 instruction->GetBlock()->RemoveInstruction(instruction); in VisitAboveOrEqual() 175 instruction->GetBlock()->RemoveInstruction(instruction); in VisitBelow() 187 instruction->GetBlock()->RemoveInstruction(instruction); in VisitBelowOrEqual() 199 instruction->GetBlock()->RemoveInstruction(instruction); in VisitAnd() [all …]
|
D | graph_checker.cc | 302 if (!load->GetBlock()->IsCatchBlock()) { in VisitLoadException() 306 load->GetBlock()->GetBlockId())); in VisitLoadException() 307 } else if (load->GetBlock()->GetFirstInstruction() != load) { in VisitLoadException() 311 load->GetBlock()->GetBlockId())); in VisitLoadException() 324 if (instruction->GetBlock() == nullptr) { in VisitInstruction() 329 } else if (instruction->GetBlock() != current_block_) { in VisitInstruction() 334 instruction->GetBlock()->GetBlockId())); in VisitInstruction() 342 ? input->GetBlock()->GetPhis() in VisitInstruction() 343 : input->GetBlock()->GetInstructions(); in VisitInstruction() 357 ? user->GetBlock()->GetPhis() in VisitInstruction() [all …]
|
D | gvn_test.cc | 99 ASSERT_EQ(to_remove->GetBlock(), block); in TEST_F() 100 ASSERT_EQ(different_offset->GetBlock(), block); in TEST_F() 101 ASSERT_EQ(use_after_kill->GetBlock(), block); in TEST_F() 108 ASSERT_TRUE(to_remove->GetBlock() == nullptr); in TEST_F() 109 ASSERT_EQ(different_offset->GetBlock(), block); in TEST_F() 110 ASSERT_EQ(use_after_kill->GetBlock(), block); in TEST_F() 287 ASSERT_EQ(field_get_in_loop_header->GetBlock(), loop_header); in TEST_F() 288 ASSERT_EQ(field_get_in_loop_body->GetBlock(), loop_body); in TEST_F() 289 ASSERT_EQ(field_get_in_exit->GetBlock(), exit); in TEST_F() 299 ASSERT_EQ(field_get_in_loop_header->GetBlock(), loop_header); in TEST_F() [all …]
|
D | prepare_for_register_allocation.cc | 47 bound_type->GetBlock()->RemoveInstruction(bound_type); in VisitBoundType() 108 check->GetBlock()->RemoveInstruction(check); in VisitClinitCheck() 111 load_class->GetBlock()->RemoveInstruction(load_class); in VisitClinitCheck() 117 check->GetBlock()->RemoveInstruction(check); in VisitClinitCheck() 143 load_class->GetBlock()->RemoveInstruction(load_class); in VisitNewInstance() 223 if (user->GetBlock() != input->GetBlock()) { in CanMoveClinitCheck()
|
D | bounds_check_elimination.cc | 401 DCHECK(induction_variable_->GetBlock()->IsLoopHeader()); in GetLoopHeader() 402 return induction_variable_->GetBlock(); in GetLoopHeader() 629 if (instruction->GetBlock() != basic_block) { in ApplyRangeFromComparison() 646 if (instruction->GetBlock() != left->GetBlock()) { in HandleIfBetweenTwoMonotonicValueRanges() 687 ApplyRangeFromComparison(left, instruction->GetBlock(), successor, in HandleIfBetweenTwoMonotonicValueRanges() 696 ApplyRangeFromComparison(right, instruction->GetBlock(), successor, in HandleIfBetweenTwoMonotonicValueRanges() 705 HBasicBlock* block = instruction->GetBlock(); in HandleIf() 721 if (instruction->GetBlock() != loop_head) { in HandleIf() 807 HBasicBlock* block = bounds_check->GetBlock(); in VisitBoundsCheck() 896 DCHECK(phi->GetBlock()->GetLoopInformation()->IsBackEdge( in HasSameInputAtBackEdges() [all …]
|
D | licm.cc | 23 return instruction->IsPhi() && instruction->GetBlock() == block; in IsPhiOf() 32 HLoopInformation* info = instruction->GetBlock()->GetLoopInformation(); in InputsAreDefinedBeforeLoop() 34 HLoopInformation* input_loop = it.Current()->GetBlock()->GetLoopInformation(); in InputsAreDefinedBeforeLoop() 48 HLoopInformation* input_loop = input->GetBlock()->GetLoopInformation(); in InputsAreDefinedBeforeLoop()
|
D | locations.cc | 28 instruction->GetBlock()->GetGraph()->GetArena()->Adapter(kArenaAllocLocationSummary)), in LocationSummary() 29 temps_(instruction->GetBlock()->GetGraph()->GetArena()->Adapter(kArenaAllocLocationSummary)), in LocationSummary() 39 ArenaAllocator* arena = instruction->GetBlock()->GetGraph()->GetArena(); in LocationSummary()
|
D | ssa_builder.cc | 297 HArrayGet* equivalent = new (aget->GetBlock()->GetGraph()->GetArena()) HArrayGet( in CreateFloatOrDoubleEquivalentOfArrayGet() 302 aget->GetBlock()->InsertInstructionAfter(equivalent, aget); in CreateFloatOrDoubleEquivalentOfArrayGet() 343 aget_float->GetBlock()->RemoveInstruction(aget_float); in FixAmbiguousArrayOps() 357 aget_int->GetBlock()->RemoveInstruction(aget_int); in FixAmbiguousArrayOps() 452 new_instance->GetBlock()->RemoveInstruction(new_instance); in RemoveRedundantUninitializedStrings() 465 input->GetBlock()->RemoveInstruction(input); in RemoveRedundantUninitializedStrings() 475 load_class->GetBlock()->RemoveInstruction(load_class); in RemoveRedundantUninitializedStrings() 563 constant->GetBlock()->InsertInstructionBefore(result, constant->GetNext()); in GetFloatEquivalent() 585 constant->GetBlock()->InsertInstructionBefore(result, constant->GetNext()); in GetDoubleEquivalent() 624 phi->GetBlock()->InsertPhiAfter(new_phi, phi); in GetFloatDoubleOrReferenceEquivalentOfPhi()
|
D | nodes.cc | 507 if ((cached_null_constant_ == nullptr) || (cached_null_constant_->GetBlock() == nullptr)) { in GetNullConstant() 523 if ((cached_current_method_ == nullptr) || (cached_current_method_->GetBlock() == nullptr)) { in GetCurrentMethod() 716 return !blocks_.IsBitSet(instruction->GetBlock()->GetBlockId()); in IsDefinedOutOfTheLoop() 769 DCHECK(initial->GetBlock() == this); in ReplaceAndRemoveInstructionWith() 775 DCHECK_EQ(initial->GetBlock(), this); in ReplaceAndRemoveInstructionWith() 797 HBasicBlock* from_block = insn->GetBlock(); in MoveInstructionBefore() 798 HBasicBlock* to_block = cursor->GetBlock(); in MoveInstructionBefore() 809 DCHECK(instruction->GetBlock() == nullptr); in Add() 830 DCHECK_EQ(cursor->GetBlock(), this); in InsertInstructionBefore() 843 DCHECK_EQ(cursor->GetBlock(), this); in InsertInstructionAfter() [all …]
|
D | instruction_simplifier_arm64.cc | 63 access->GetBlock()->InsertInstructionBefore(address, access); in TryExtractArrayAccessAddress() 142 use->GetBlock()->ReplaceAndRemoveInstructionWith(use, alu_with_op); in TryMergeIntoShifterOperand() 144 bitfield_op->GetBlock()->RemoveInstruction(bitfield_op); in TryMergeIntoShifterOperand()
|
D | reference_type_propagation.cc | 221 DCHECK(!dominator_block->Dominates(user->GetBlock()) in ShouldCreateBoundType() 275 if (notNullBlock->Dominates(user->GetBlock())) { in BoundTypeForIfNotNull() 415 if (instanceOfTrueBlock->Dominates(user->GetBlock())) { in BoundTypeForIfInstanceOf() 468 instr->SetReferenceTypeInfo(instr->GetBlock()->GetGraph()->GetInexactObjectRti()); in SetClassAsTypeInfo() 549 instr->SetReferenceTypeInfo(instr->GetBlock()->GetGraph()->GetInexactObjectRti()); in VisitUnresolvedInstanceFieldGet() 557 instr->SetReferenceTypeInfo(instr->GetBlock()->GetGraph()->GetInexactObjectRti()); in VisitUnresolvedStaticFieldGet() 586 DCHECK(instr->GetBlock()->IsCatchBlock()); in VisitLoadException() 587 TryCatchInformation* catch_info = instr->GetBlock()->GetTryCatchInformation(); in VisitLoadException() 636 instr->GetBlock()->RemoveInstruction(instr); in VisitBoundType() 668 if (phi->GetBlock()->IsLoopHeader()) { in VisitPhi() [all …]
|
D | pc_relative_fixups_x86.cc | 128 HBasicBlock* block = neg->GetBlock(); in VisitNeg() 147 HBasicBlock* block = switch_insn->GetBlock(); in VisitPackedSwitch() 177 insn->GetBlock()->InsertInstructionBefore(load_constant, insn); in ReplaceInput()
|
D | optimizing_unit_test.h | 70 current->GetBlock()->RemoveInstruction(current); in RemoveSuspendChecks() 121 return instruction->GetBlock() == nullptr; in IsRemoved()
|
D | nodes_shared.h | 87 return GetBlock()->GetGraph()->GetIntConstant( in Evaluate() 91 return GetBlock()->GetGraph()->GetLongConstant( in Evaluate()
|
D | nodes.h | 538 if (constant == nullptr || constant->GetBlock() == nullptr) { 1791 HBasicBlock* GetBlock() const { return block_; } in GetBlock() function 1798 return IsLoopHeaderPhi() && GetBlock()->GetLoopInformation()->IsIrreducible(); in IsIrreducibleLoopHeaderPhi() 1853 new (GetBlock()->GetGraph()->GetArena()) HUseListNode<HInstruction*>(user, index); in AddUseAt() 1863 new (GetBlock()->GetGraph()->GetArena()) HUseListNode<HEnvironment*>(user, index); in AddEnvUseAt() 1913 ArenaAllocator* allocator = GetBlock()->GetGraph()->GetArena(); in CopyEnvironmentFrom() 1924 ArenaAllocator* allocator = GetBlock()->GetGraph()->GetArena(); in CopyEnvironmentFromWithLoopPhiAdjustment() 2020 bool IsSuspendCheckEntry() const { return IsSuspendCheck() && GetBlock()->IsEntryBlock(); } in IsSuspendCheckEntry() 2366 bool IsCatchPhi() const { return GetBlock()->IsCatchBlock(); } in IsCatchPhi() 2398 && other->AsPhi()->GetBlock() == GetBlock() in IsVRegEquivalentOf() [all …]
|
D | load_store_elimination.cc | 423 if (instruction->GetBlock()->GetLoopInformation() != nullptr) { in VisitInstanceFieldSet() 558 load->GetBlock()->RemoveInstruction(load); in RemoveInstructions() 566 store->GetBlock()->RemoveInstruction(store); in RemoveInstructions() 684 prev->GetBlock()->RemoveInstruction(prev); in TryRemovingNullCheck() 720 heap_values_for_[instruction->GetBlock()->GetBlockId()]; in VisitGetLocation() 784 heap_values_for_[instruction->GetBlock()->GetBlockId()]; in VisitSetLocation() 808 HLoopInformation* loop_info = instruction->GetBlock()->GetLoopInformation(); in VisitSetLocation() 817 DCHECK(original_ref->GetBlock()->Dominates(loop_info->GetPreHeader())); in VisitSetLocation() 915 heap_values_for_[invoke->GetBlock()->GetBlockId()]; in HandleInvoke() 979 heap_values_for_[new_instance->GetBlock()->GetBlockId()]; in VisitNewInstance()
|
D | inliner.cc | 394 HBasicBlock* bb_cursor = invoke_instruction->GetBlock(); in TryInlineMonomorphicCall() 495 HBasicBlock* bb_cursor = invoke_instruction->GetBlock(); in TryInlinePolymorphicCall() 523 invoke_instruction->GetBlock()->RemoveInstruction(invoke_instruction); in TryInlinePolymorphicCall() 554 HBasicBlock* cursor_block = compare->GetBlock(); in CreateDiamondPatternForPolymorphicInline() 555 HBasicBlock* original_invoke_block = invoke_instruction->GetBlock(); in CreateDiamondPatternForPolymorphicInline() 566 HBasicBlock* end_then = invoke_instruction->GetBlock(); in CreateDiamondPatternForPolymorphicInline() 677 HBasicBlock* bb_cursor = invoke_instruction->GetBlock(); in TryInlinePolymorphicCallToSameTarget() 728 invoke_instruction->GetBlock()->RemoveInstruction(invoke_instruction); in TryInlinePolymorphicCallToSameTarget() 751 invoke_instruction->GetBlock()->RemoveInstruction(invoke_instruction); in TryInlineAndReplace() 894 invoke_instruction->GetBlock()->InsertInstructionBefore(iget, invoke_instruction); in TryPatternSubstitution() [all …]
|
D | ssa_phi_elimination.cc | 182 current->GetBlock()->IsLoopPreHeaderFirstPredecessor()); in Run() 246 current->GetBlock()->RemovePhi(current); in Run()
|
D | nodes_x86.h | 105 return GetBlock()->GetSuccessors()[num_entries_]; in GetDefaultBlock()
|
D | ssa_liveness_analysis.h | 140 return user_->GetBlock()->GetLoopInformation(); in GetLoopInformation() 272 AddBackEdgeUses(*instruction->GetBlock()); 309 size_t start_block_position = instruction->GetBlock()->GetLifetimeStart(); 1188 return instruction->GetBlock(); in GetBlockFromPosition() 1259 if (instruction->GetBlock()->GetGraph()->IsDebuggable()) return true; in ShouldBeLiveForEnvironment() 1273 DCHECK(instruction->GetBlock()->IsEntryBlock()) << instruction->DebugName(); in CheckNoLiveInIrreducibleLoop()
|
D | select_generator.cc | 134 DCHECK_EQ(only_two_predecessors, phi->GetBlock() == nullptr); in Run()
|
D | ssa_liveness_analysis.cc | 432 if (end == user->GetBlock()->GetPredecessors()[input_index]->GetLifetimeEnd()) { in FindFirstRegisterHint() 439 user->GetBlock()->GetPredecessors()[i]->GetLifetimeEnd() - 1); in FindFirstRegisterHint() 473 const ArenaVector<HBasicBlock*>& predecessors = defined_by_->GetBlock()->GetPredecessors(); in FindHintAtDefinition()
|