Lines Matching refs:GetGraph
153 for (HBasicBlock* block : GetGraph()->GetReversePostOrder()) { in Run()
206 HNeg* neg = new (GetGraph()->GetAllocator()) HNeg(binop->GetType(), binop); in TryMoveNegOnInputsAfterBinop()
245 hbin = new (GetGraph()->GetAllocator()) HOr(type, src_left, src_right, dex_pc); in TryDeMorganNegationFactoring()
247 hbin = new (GetGraph()->GetAllocator()) HAnd(type, src_left, src_right, dex_pc); in TryDeMorganNegationFactoring()
251 hnot = new (GetGraph()->GetAllocator()) HBooleanNot(hbin, dex_pc); in TryDeMorganNegationFactoring()
253 hnot = new (GetGraph()->GetAllocator()) HNot(type, hbin, dex_pc); in TryDeMorganNegationFactoring()
283 ArenaAllocator* allocator = mul->GetBlock()->GetGraph()->GetAllocator(); in TryCombineVecMultiplyAccumulate()
365 instruction->ReplaceInput(GetGraph()->GetIntConstant(masked_cst), /* index= */ 1); in VisitShift()
417 new (GetGraph()->GetAllocator()) HRor(ushr->GetType(), ushr->GetLeft(), ushr->GetRight()); in ReplaceRotateWithRor()
665 HGraph* graph = GetGraph(); in VisitInstanceOf()
761 equal->ReplaceWith(GetGraph()->InsertOppositeCondition(input_value, equal)); in VisitEqual()
766 equal->ReplaceWith(GetGraph()->GetIntConstant(0)); in VisitEqual()
788 not_equal->ReplaceWith(GetGraph()->InsertOppositeCondition(input_value, not_equal)); in VisitNotEqual()
798 not_equal->ReplaceWith(GetGraph()->GetIntConstant(1)); in VisitNotEqual()
817 replace_with = GetGraph()->GetIntConstant(0); in VisitBooleanNot()
820 replace_with = GetGraph()->GetIntConstant(1); in VisitBooleanNot()
830 replace_with = GetGraph()->InsertOppositeCondition(input->AsCondition(), bool_not); in VisitBooleanNot()
946 replace_with = GetGraph()->InsertOppositeCondition(condition, select); in VisitSelect()
973 replace_with = NewIntegralMinMax(GetGraph()->GetAllocator(), a, b, select, is_min); in VisitSelect()
983 replace_with = NewIntegralAbs(GetGraph()->GetAllocator(), a, select); in VisitSelect()
998 replace_with = NewIntegralAbs(GetGraph()->GetAllocator(), true_value, select); in VisitSelect()
1309 new(GetGraph()->GetAllocator()) HSub(instruction->GetType(), other, neg->GetInput()); in VisitAdd()
1389 HConstant* new_const = GetGraph()->GetConstant(DataType::Type::kInt32, value); in VisitAnd()
1391 new (GetGraph()->GetAllocator()) HAnd(DataType::Type::kInt32, new_and_input, new_const); in VisitAnd()
1394 new (GetGraph()->GetAllocator()) HTypeConversion(DataType::Type::kInt64, new_and); in VisitAnd()
1419 HUShr* ushr = new (GetGraph()->GetAllocator()) HUShr(instruction->GetType(), in VisitAnd()
1444 HTypeConversion* type_conversion = new (GetGraph()->GetAllocator()) HTypeConversion( in VisitAnd()
1555 condition->ReplaceWith(condition->GetBlock()->GetGraph()->GetIntConstant(value)); in RecognizeAndSimplifyClassCheck()
1572 GetOppositeConditionSwapOps(block->GetGraph()->GetAllocator(), condition); in VisitCondition()
1608 if (GetGraph()->IsDebuggable()) { in VisitCondition()
1668 instruction, new (GetGraph()->GetAllocator()) HNeg(type, input_other)); in VisitDiv()
1682 reciprocal = GetGraph()->GetDoubleConstant(1.0 / value); in VisitDiv()
1688 reciprocal = GetGraph()->GetFloatConstant(1.0f / value); in VisitDiv()
1694 instruction, new (GetGraph()->GetAllocator()) HMul(type, input_other, reciprocal)); in VisitDiv()
1706 ArenaAllocator* allocator = GetGraph()->GetAllocator(); in VisitMul()
1767 HIntConstant* shift = GetGraph()->GetIntConstant(WhichPowerOf2(factor)); in VisitMul()
1780 GetGraph()->GetIntConstant(WhichPowerOf2(factor - 1))); in VisitMul()
1795 GetGraph()->GetIntConstant(WhichPowerOf2(factor + 1))); in VisitMul()
1845 HSub* new_sub = new (GetGraph()->GetAllocator()) HSub( in VisitNeg()
1948 ArenaAllocator* allocator = GetGraph()->GetAllocator(); in VisitSub()
1980 HAdd* add = new(GetGraph()->GetAllocator()) HAdd(type, left, right->AsNeg()->GetInput()); in VisitSub()
1996 HAdd* add = new(GetGraph()->GetAllocator()) HAdd(type, left->AsNeg()->GetInput(), right); in VisitSub()
1998 HNeg* neg = new (GetGraph()->GetAllocator()) HNeg(instruction->GetType(), add); in VisitSub()
2060 HBooleanNot* boolean_not = new (GetGraph()->GetAllocator()) HBooleanNot(input_other); in VisitXor()
2071 HNot* bitwise_not = new (GetGraph()->GetAllocator()) HNot(instruction->GetType(), input_other); in VisitXor()
2115 instruction->ReplaceWith(GetGraph()->GetIntConstant(1)); in SimplifyStringEquals()
2142 distance = new (GetGraph()->GetAllocator()) HNeg(DataType::Type::kInt32, distance); in SimplifyRotate()
2145 HRor* ror = new (GetGraph()->GetAllocator()) HRor(type, value, distance); in SimplifyRotate()
2285 right = GetGraph()->GetLongConstant(0); in SimplifyCompare()
2287 right = GetGraph()->GetIntConstant(0); in SimplifyCompare()
2289 HCompare* compare = new (GetGraph()->GetAllocator()) in SimplifyCompare()
2299 HCondition* condition = new (GetGraph()->GetAllocator()) HNotEqual(x, x, dex_pc); in SimplifyIsNaN()
2312 nan = GetGraph()->GetLongConstant(0x7ff8000000000000L); in SimplifyFP2Int()
2319 nan = GetGraph()->GetIntConstant(0x7fc00000); in SimplifyFP2Int()
2326 HCondition* condition = new (GetGraph()->GetAllocator()) HNotEqual(x, x, dex_pc); in SimplifyFP2Int()
2330 HInstruction* select = new (GetGraph()->GetAllocator()) HSelect(condition, nan, invoke, dex_pc); in SimplifyFP2Int()
2339 ArenaAllocator* allocator = GetGraph()->GetAllocator(); in SimplifyStringCharAt()
2355 GetGraph()->SetHasBoundsChecks(true); in SimplifyStringCharAt()
2364 new (GetGraph()->GetAllocator()) HArrayLength(str, dex_pc, /* is_string_length= */ true); in SimplifyStringIsEmptyOrLength()
2369 HIntConstant* zero = GetGraph()->GetIntConstant(0); in SimplifyStringIsEmptyOrLength()
2370 HEqual* equal = new (GetGraph()->GetAllocator()) HEqual(length, zero, dex_pc); in SimplifyStringIsEmptyOrLength()
2389 invoke->ReplaceWith(GetGraph()->GetIntConstant(-1)); in SimplifyStringIndexOf()
2401 ArenaAllocator* allocator = GetGraph()->GetAllocator(); in SimplifyStringIndexOf()
2403 new (allocator) HEqual(invoke->InputAt(1), GetGraph()->GetIntConstant(c), dex_pc); in SimplifyStringIndexOf()
2406 GetGraph()->GetIntConstant(0), in SimplifyStringIndexOf()
2407 GetGraph()->GetIntConstant(-1), in SimplifyStringIndexOf()
2613 HIntConstant* fmt = block->GetGraph()->GetIntConstant(static_cast<int32_t>(format)); in TryReplaceStringBuilderAppend()
2614 ArenaAllocator* allocator = block->GetGraph()->GetAllocator(); in TryReplaceStringBuilderAppend()
2670 new (GetGraph()->GetAllocator()) HMemoryBarrier(barrier_kind, dex_pc); in SimplifyMemBarrier()
2676 HMin* min = new (GetGraph()->GetAllocator()) in SimplifyMin()
2683 HMax* max = new (GetGraph()->GetAllocator()) in SimplifyMax()
2690 HAbs* abs = new (GetGraph()->GetAllocator()) in SimplifyAbs()
2978 HConstant* const3 = block->GetGraph()->GetConstant(type, const3_val); in TrySubtractionChainSimplification()