/art/compiler/optimizing/ |
D | escape.cc | 54 (user->IsInstanceFieldSet() && (reference == user->InputAt(1))) || in VisitEscapes() 55 (user->IsUnresolvedInstanceFieldSet() && (reference == user->InputAt(1))) || in VisitEscapes() 56 (user->IsStaticFieldSet() && (reference == user->InputAt(1))) || in VisitEscapes() 57 (user->IsUnresolvedStaticFieldSet() && (reference == user->InputAt(0))) || in VisitEscapes() 58 (user->IsArraySet() && (reference == user->InputAt(2)))) { in VisitEscapes() 64 } else if ((user->IsUnresolvedInstanceFieldGet() && (reference == user->InputAt(0))) || in VisitEscapes() 65 (user->IsUnresolvedInstanceFieldSet() && (reference == user->InputAt(0)))) { in VisitEscapes()
|
D | x86_memory_gen.cc | 36 HArrayLength* array_len = check->InputAt(1)->AsArrayLengthOrNull(); in VisitBoundsCheck() 43 HInstruction* array = array_len->InputAt(0); in VisitBoundsCheck() 47 if (array->IsConstant() || (array->IsNullCheck() && array->InputAt(0)->IsConstant())) { in VisitBoundsCheck()
|
D | induction_var_analysis.cc | 93 HInstruction* if_expr = ifs->InputAt(0); in IsGuardedBy() 98 if (if_expr->InputAt(0) == a && if_expr->InputAt(1) == b) { in IsGuardedBy() 100 } else if (if_expr->InputAt(1) == a && if_expr->InputAt(0) == b) { in IsGuardedBy() 118 use.GetUser()->InputAt(1) == instruction) { in FindFirstLoopHeaderPhiUse() 407 LookupInfo(loop, instruction->InputAt(0)), in ClassifyTrivial() 408 LookupInfo(loop, instruction->InputAt(1)), in ClassifyTrivial() 414 LookupInfo(loop, instruction->InputAt(0)), in ClassifyTrivial() 415 LookupInfo(loop, instruction->InputAt(1)), in ClassifyTrivial() 419 info = TransferNeg(context, loop, LookupInfo(loop, instruction->InputAt(0)), type); in ClassifyTrivial() 423 LookupInfo(loop, instruction->InputAt(0)), in ClassifyTrivial() [all …]
|
D | instruction_simplifier_arm64.cc | 109 left = use->InputAt(0); in TryMergeIntoShifterOperand() 110 right = use->InputAt(1); in TryMergeIntoShifterOperand() 113 right = use->AsNeg()->InputAt(0); in TryMergeIntoShifterOperand() 149 bitfield_op->InputAt(0), in TryMergeIntoShifterOperand() 238 if (instruction->InputAt(1)->IsConstant()) { in VisitShl() 244 if (instruction->InputAt(1)->IsConstant()) { in VisitShr() 251 HInstruction* shl = instruction->GetRight()->InputAt(0); in VisitSub() 252 if (shl->InputAt(1)->IsConstant() && TryReplaceSubSubWithSubAdd(instruction)) { in VisitSub() 279 if (instruction->InputAt(1)->IsConstant()) { in VisitUShr()
|
D | load_store_analysis.h | 224 ref = ref->InputAt(0); in HuntForOriginalReference() 254 HInstruction* array = instruction->InputAt(0); in GetArrayHeapLocation() 255 HInstruction* index = instruction->InputAt(1); in GetArrayHeapLocation() 493 VisitFieldAccess(instruction->InputAt(0), instruction->GetFieldInfo()); in VisitInstanceFieldGet() 498 VisitFieldAccess(instruction->InputAt(0), instruction->GetFieldInfo()); in VisitInstanceFieldSet() 503 VisitFieldAccess(instruction->InputAt(0), instruction->GetFieldInfo()); in VisitStaticFieldGet() 508 VisitFieldAccess(instruction->InputAt(0), instruction->GetFieldInfo()); in VisitStaticFieldSet() 516 HInstruction* array = instruction->InputAt(0); in VisitArrayGet() 517 HInstruction* index = instruction->InputAt(1); in VisitArrayGet() 524 HInstruction* array = instruction->InputAt(0); in VisitArraySet() [all …]
|
D | instruction_simplifier_arm.cc | 100 HInstruction* left = use->InputAt(0); in TryMergeIntoShifterOperand() 101 HInstruction* right = use->InputAt(1); in TryMergeIntoShifterOperand() 145 bitfield_op->InputAt(0), in TryMergeIntoShifterOperand() 267 if (instruction->InputAt(1)->IsConstant()) { in VisitShl() 273 if (instruction->InputAt(1)->IsConstant()) { in VisitShr() 280 HInstruction* shl = instruction->GetRight()->InputAt(0); in VisitSub() 281 if (shl->InputAt(1)->IsConstant() && TryReplaceSubSubWithSubAdd(instruction)) { in VisitSub() 308 if (instruction->InputAt(1)->IsConstant()) { in VisitUShr()
|
D | instruction_simplifier_shared.h | 38 return (instruction->IsShl() && instruction->AsShl()->InputAt(1)->IsIntConstant()) || in CanFitInShifterOperand() 39 (instruction->IsShr() && instruction->AsShr()->InputAt(1)->IsIntConstant()) || in CanFitInShifterOperand() 40 (instruction->IsUShr() && instruction->AsUShr()->InputAt(1)->IsIntConstant()); in CanFitInShifterOperand()
|
D | instruction_simplifier.cc | 246 HInstruction* src_left = left->InputAt(0); in TryDeMorganNegationFactoring() 247 HInstruction* src_right = right->InputAt(0); in TryDeMorganNegationFactoring() 539 DataType::Type source_type = shift_amount->InputAt(0)->GetType(); in VisitShift() 656 HInstruction* value = neg->InputAt(0); in TryReplaceWithRotateRegisterNegPattern() 704 HInstruction* obj = null_check->InputAt(0); in VisitNullCheck() 775 HInstruction* object = check_cast->InputAt(0); in VisitCheckCast() 816 HInstruction* object = instruction->InputAt(0); in VisitInstanceOf() 882 HInstruction *lhs = cond->InputAt(0); in GetOppositeConditionSwapOps() 883 HInstruction *rhs = cond->InputAt(1); in GetOppositeConditionSwapOps() 976 HInstruction* input = bool_not->InputAt(0); in VisitBooleanNot() [all …]
|
D | dead_code_elimination.cc | 52 HInstruction* condition = if_instruction->InputAt(0); in MarkReachableBlocks() 65 HInstruction* switch_input = switch_instruction->InputAt(0); in MarkReachableBlocks() 108 return (instruction->InputAt(0) == input) || in HasInput() 109 (instruction->InputAt(1) == input); in HasInput() 169 HInstruction* cond = ifs->InputAt(0); in RemoveNonNullControlDependences() 179 HInstruction* obj = cond->InputAt(1); in RemoveNonNullControlDependences() 181 obj = cond->InputAt(0); in RemoveNonNullControlDependences() 182 } else if (!cond->InputAt(0)->IsNullConstant()) { in RemoveNonNullControlDependences() 360 bool has_only_phi_and_if = (last == first) && (last->InputAt(0) == block->GetFirstPhi()); in SimplifyIfs() 366 (last->InputAt(0) == first) && in SimplifyIfs() [all …]
|
D | reference_type_propagation.cc | 237 BoundTypeIn(receiver->InputAt(0), start_block, start_instruction, class_rti); in BoundTypeIn() 248 HInstruction* compare = check->InputAt(0); in BoundTypeForClassCheck() 252 HInstruction* input_one = compare->InputAt(0); in BoundTypeForClassCheck() 253 HInstruction* input_two = compare->InputAt(1); in BoundTypeForClassCheck() 271 HInstruction* receiver = field_get->InputAt(0); in BoundTypeForClassCheck() 336 HInstruction* ifInput = ifInstruction->InputAt(0); in BoundTypeForIfNotNull() 340 HInstruction* input0 = ifInput->InputAt(0); in BoundTypeForIfNotNull() 341 HInstruction* input1 = ifInput->InputAt(1); in BoundTypeForIfNotNull() 385 HInstruction* input = ifInstruction->InputAt(0); in MatchIfInstanceOf() 433 HInstruction* not_input = input->InputAt(0); in MatchIfInstanceOf() [all …]
|
D | constant_folding.cc | 132 } else if (inst->InputAt(0)->IsSelect() && inst->InputAt(0)->HasOnlyOneNonEnvironmentUse()) { in VisitUnaryOperation() 135 HSelect* select = inst->InputAt(0)->AsSelect(); in VisitUnaryOperation() 144 DCHECK_EQ(select->InputAt(0), select->GetFalseValue()); in VisitUnaryOperation() 145 DCHECK_EQ(select->InputAt(1), select->GetTrueValue()); in VisitUnaryOperation() 183 DCHECK_EQ(select->InputAt(0), select->GetFalseValue()); in TryRemoveBinaryOperationViaSelect() 184 DCHECK_EQ(select->InputAt(1), select->GetTrueValue()); in TryRemoveBinaryOperationViaSelect() 212 HInstruction* check_input = inst->InputAt(0); in VisitDivZeroCheck() 247 HInstruction* if_input = inst->InputAt(0); in VisitIf() 397 HInstruction* input = inst->InputAt(0); in FoldReverseIntrinsic() 420 HInstruction* input = inst->InputAt(0); in FoldReverseBytesIntrinsic() [all …]
|
D | induction_var_range_test.cc | 983 HInstruction* phi = condition_->InputAt(0); in TEST_F() 1013 ExpectInt(1000, last->InputAt(0)); in TEST_F() 1014 ExpectInt(0, last->InputAt(1)); in TEST_F() 1037 HInstruction* phi = condition_->InputAt(0); in TEST_F() 1068 ExpectInt(1000, last->InputAt(0)); in TEST_F() 1069 ASSERT_TRUE(last->InputAt(1)->IsNeg()); in TEST_F() 1070 ExpectInt(-1000, last->InputAt(1)->AsNeg()->InputAt(0)); in TEST_F() 1082 last = tce->InputAt(0); in TEST_F() 1084 ExpectInt(0, last->InputAt(0)); in TEST_F() 1085 ExpectInt(1000, last->InputAt(1)); in TEST_F() [all …]
|
D | select_generator.cc | 140 true_value = true_block->GetFirstInstruction()->InputAt(0); in TryGenerateSelectSimpleDiamondPattern() 141 false_value = false_block->GetFirstInstruction()->InputAt(0); in TryGenerateSelectSimpleDiamondPattern() 143 true_value = phi->InputAt(predecessor_index_true); in TryGenerateSelectSimpleDiamondPattern() 144 false_value = phi->InputAt(predecessor_index_false); in TryGenerateSelectSimpleDiamondPattern() 151 HInstruction* condition = if_instruction->InputAt(0); in TryGenerateSelectSimpleDiamondPattern() 234 inner_if_block->GetLastInstruction()->AsIf()->InputAt(0) != in TryFixupDoubleDiamondPattern() 290 first_phi->AddInput(second_phi->InputAt(index)); in TryFixupDoubleDiamondPattern()
|
D | induction_var_analysis_test.cc | 265 EXPECT_STREQ("((1) * i + (0)):Int32", GetInductionInfo(store->InputAt(1), 0).c_str()); in TEST_F() 269 EXPECT_FALSE(HaveSameInduction(store->InputAt(1), increment_[0])); in TEST_F() 329 GetInductionInfo(store1->InputAt(1), 0).c_str()); in TEST_F() 331 GetInductionInfo(store2->InputAt(1), 0).c_str()); in TEST_F() 364 EXPECT_STREQ("((1) * i + (1)):Int32", GetInductionInfo(store->InputAt(1), 0).c_str()); in TEST_F() 367 EXPECT_TRUE(HaveSameInduction(store->InputAt(1), inc1)); in TEST_F() 368 EXPECT_TRUE(HaveSameInduction(store->InputAt(1), inc2)); in TEST_F() 395 EXPECT_STREQ("((1) * i + (1)):Int32", GetInductionInfo(store->InputAt(1), 0).c_str()); in TEST_F() 398 EXPECT_TRUE(HaveSameInduction(store->InputAt(1), inc1)); in TEST_F() 399 EXPECT_TRUE(HaveSameInduction(store->InputAt(1), inc2)); in TEST_F() [all …]
|
D | loop_optimization.cc | 132 HInstruction* conv = instruction->InputAt(0); in IsSignExtensionAndGet() 147 IsZeroExtensionAndGet(instruction->InputAt(0), type, /*out*/ operand); in IsSignExtensionAndGet() 197 HInstruction* conv = instruction->InputAt(0); in IsZeroExtensionAndGet() 210 IsSignExtensionAndGet(instruction->InputAt(0), type, /*out*/ operand); in IsZeroExtensionAndGet() 281 return IsAddConst(instruction->InputAt(0), a, b, c, depth - 1) && in IsAddConst() 282 IsAddConst(instruction->InputAt(1), a, b, c, depth - 1); in IsAddConst() 284 IsInt64AndGet(instruction->InputAt(1), &value)) { in IsAddConst() 286 return IsAddConst(instruction->InputAt(0), a, b, c, depth - 1); in IsAddConst() 328 *a = instruction->InputAt(0); in IsSubConst2() 329 *b = instruction->InputAt(1); in IsSubConst2() [all …]
|
D | write_barrier_elimination.cc | 54 HInstruction* obj = HuntForOriginalReference(instruction->InputAt(0)); in VisitInstanceFieldSet() 81 HInstruction* cls = HuntForOriginalReference(instruction->InputAt(0)); in VisitStaticFieldSet() 108 HInstruction* arr = HuntForOriginalReference(instruction->InputAt(0)); in VisitArraySet() 141 ref = ref->InputAt(0); in HuntForOriginalReference()
|
D | intrinsics.cc | 95 HInstruction* const input = invoke->InputAt(0); in ComputeValueOfLocations() 134 if (invoke->InputAt(0)->IsIntConstant()) { in ComputeValueOfInfo() 135 int32_t input_value = invoke->InputAt(0)->AsIntConstant()->GetValue(); in ComputeValueOfInfo() 152 if (invoke->InputAt(0)->IsIntConstant()) { in ComputeValueOfInfo() 153 int32_t input_value = invoke->InputAt(0)->AsIntConstant()->GetValue(); in ComputeValueOfInfo() 230 HInstruction* input = invoke->InputAt(input_index); in InsertFpToIntegralIntrinsic()
|
D | prepare_for_register_allocation.cc | 53 check->ReplaceWith(check->InputAt(0)); in VisitNullCheck() 63 if (next->CanDoImplicitNullCheckOn(check->InputAt(0))) { in VisitNullCheck() 70 check->ReplaceWith(check->InputAt(0)); in VisitDivZeroCheck() 82 check->ReplaceWith(check->InputAt(0)); in VisitBoundsCheck() 100 bound_type->ReplaceWith(bound_type->InputAt(0)); in VisitBoundType()
|
D | constant_folding_test.cc | 127 HInstruction* inst = graph->GetBlocks()[1]->GetFirstInstruction()->InputAt(0); in TEST_F() 188 HInstruction* inst = graph->GetBlocks()[1]->GetFirstInstruction()->InputAt(0); in TEST_F() 249 HInstruction* inst = graph->GetBlocks()[1]->GetFirstInstruction()->InputAt(0); in TEST_F() 328 HInstruction* inst1 = graph->GetBlocks()[1]->GetFirstInstruction()->InputAt(0); in TEST_F() 399 HInstruction* inst = graph->GetBlocks()[1]->GetFirstInstruction()->InputAt(0); in TEST_F() 462 HInstruction* inst = graph->GetBlocks()[1]->GetFirstInstruction()->InputAt(0); in TEST_F() 526 HInstruction* inst = graph->GetBlocks()[1]->GetFirstInstruction()->InputAt(0); in TEST_F() 626 HInstruction* inst1 = graph->GetBlocks()[4]->GetFirstInstruction()->InputAt(0); in TEST_F() 711 HInstruction* inst = graph->GetBlocks()[1]->GetFirstInstruction()->InputAt(0); in TEST_F()
|
D | code_sinking.cc | 122 if (!instruction->InputAt(0)->IsNewInstance()) { in IsInterestingInstruction() 128 if (!instruction->InputAt(0)->IsNewArray()) { in IsInterestingInstruction() 191 (user->InputAt(0) == instruction) && in ShouldFilterUse() 195 (user->InputAt(0) == instruction) && in ShouldFilterUse() 319 HInstruction* if_input = insert_pos->AsIf()->InputAt(0); in FindIdealPosition() 547 if (!instructions_that_can_move.IsBitSet(instruction->InputAt(0)->GetId())) { in SinkCodeToUncommonBranch() 556 position = FindIdealPosition(instruction->InputAt(0), post_dominated, /* filter= */ true); in SinkCodeToUncommonBranch() 620 ret->InputAt(0)->GetType()); in ReturnSinking() 623 new_phi->AddInput(ret->InputAt(0)); in ReturnSinking()
|
D | nodes_x86.h | 55 return InputAt(0)->AsX86ComputeBaseMethodAddress(); in GetBaseMethodAddress() 59 return InputAt(1)->AsConstant(); in GetConstant() 82 return InputAt(1)->AsX86ComputeBaseMethodAddress(); in GetBaseMethodAddress() 113 return InputAt(1)->AsX86ComputeBaseMethodAddress(); in GetBaseMethodAddress()
|
D | nodes_shared.h | 102 HInstruction* GetIndex() const { return InputAt(0); } in GetIndex() 103 HInstruction* GetOffset() const { return InputAt(1); } in GetOffset() 104 HInstruction* GetShift() const { return InputAt(2); } in GetShift()
|
D | common_arm.h | 110 DataType::Type type = instr->InputAt(input_index)->GetType(); in InputSRegisterAt() 116 DataType::Type type = instr->InputAt(input_index)->GetType(); in InputDRegisterAt() 122 DataType::Type type = instr->InputAt(input_index)->GetType(); in InputVRegisterAt() 142 instr->InputAt(input_index)->GetType()); in InputRegisterAt() 201 instr->InputAt(input_index)->GetType()); in InputOperandAt()
|
D | pc_relative_fixups_x86.cc | 65 HConstant* value = ret->InputAt(0)->AsConstantOrNull(); in VisitReturn() 98 HConstant* rhs = bin->InputAt(1)->AsConstantOrNull(); in BinaryFP() 136 neg->InputAt(0), in VisitNeg() 156 switch_insn->InputAt(0), in VisitPackedSwitch()
|
D | constructor_fence_redundancy_elimination.cc | 75 HInstruction* value = instruction->InputAt(1); in VisitInstanceFieldSet() 80 HInstruction* value = instruction->InputAt(1); in VisitStaticFieldSet() 85 HInstruction* value = instruction->InputAt(2); in VisitArraySet()
|