Home
last modified time | relevance | path

Searched refs:IsConstant (Results 1 – 25 of 57) sorted by relevance

123

/art/compiler/optimizing/
Dscheduler_arm.cc111 if (rhs->IsConstant()) { in VisitRor()
137 if (!rhs->IsConstant()) { in HandleShiftLatencies()
143 if (!rhs->IsConstant()) { in HandleShiftLatencies()
307 condition->InputAt(1)->IsConstant() in HandleGenerateTest()
323 if (right->IsConstant()) { in CanGenerateTest()
384 if (right->IsConstant()) { in HandleGenerateConditionLong()
442 if (right->IsConstant()) { in HandleGenerateConditionIntegralOrNonPrimitive()
647 if (index->IsConstant()) { in VisitArrayGet()
675 if (index->IsConstant()) { in VisitArrayGet()
689 if (index->IsConstant()) { in VisitArrayGet()
[all …]
Dx86_memory_gen.cc47 if (array->IsConstant() || (array->IsNullCheck() && array->InputAt(0)->IsConstant())) { in VisitBoundsCheck()
Dlocations.cc59 return instruction->IsConstant() in RegisterOrConstant()
87 return instruction->IsConstant() in ByteRegisterOrConstant()
93 return instruction->IsConstant() in FpuRegisterOrConstant()
Dconstant_folding.cc127 if (check_input->IsConstant() && !check_input->AsConstant()->IsArithmeticZero()) { in VisitDivZeroCheck()
137 if (left->IsConstant() && left->AsConstant()->IsArithmeticZero()) { in VisitShift()
172 if (instruction->GetLeft()->IsConstant() && in VisitAbove()
184 if (instruction->GetRight()->IsConstant() && in VisitAboveOrEqual()
196 if (instruction->GetRight()->IsConstant() && in VisitBelow()
208 if (instruction->GetLeft()->IsConstant() && in VisitBelowOrEqual()
294 if (instruction->GetLeft()->IsConstant() && in VisitRem()
Dinduction_var_range.cc377 if (IsConstant(info->op_a, kExact, &stride_value) && stride_value == 1) { in IsUnitStride()
379 if (IsConstant(info->op_b, kExact, &off_value)) { in IsUnitStride()
428 *is_constant = IsConstant(trip->op_a, kExact, trip_count); in CheckForFiniteAndConstantProps()
434 bool InductionVarRange::IsConstant(HInductionVarAnalysis::InductionInfo* info, in IsConstant() function in art::InductionVarRange
494 return (!HasFetchInLoop(lower) || range.IsConstant(lower, kAtLeast, &not_used)) && in IsWellBehavedTripCount()
495 (!HasFetchInLoop(upper) || range.IsConstant(upper, kAtLeast, &not_used)); in IsWellBehavedTripCount()
515 return IsConstant(info->op_a, kExact, stride_value); in NeedsTripCount()
559 if (IsConstant(info->op_a, kExact, &stride_value)) { in GetLinear()
605 if (IsConstant(info->op_a->op_a, kExact, &a) && CanLongValueFitIntoInt(a) && a >= 0 && in GetPolynomial()
606 IsConstant(info->op_a->op_b, kExact, &b) && CanLongValueFitIntoInt(b) && b >= 0) { in GetPolynomial()
[all …]
Dinstruction_simplifier_shared.cc54 if (input_binop->GetRight()->IsConstant() && in TrySimpleMultiplyAccumulatePatterns()
62 } else if (input_binop->GetLeft()->IsConstant() && in TrySimpleMultiplyAccumulatePatterns()
236 if (index->IsConstant() || in TryExtractArrayAccessAddress()
237 (index->IsBoundsCheck() && index->AsBoundsCheck()->GetIndex()->IsConstant())) { in TryExtractArrayAccessAddress()
285 if (index->IsConstant()) { in TryExtractVecArrayAccessAddress()
Dinstruction_simplifier_mips.cc56 if (index->IsConstant() || in TryExtractArrayAccessIndex()
57 (index->IsBoundsCheck() && index->AsBoundsCheck()->GetIndex()->IsConstant())) { in TryExtractArrayAccessIndex()
Dinstruction_simplifier_arm.cc260 if (instruction->InputAt(1)->IsConstant()) { in VisitShl()
266 if (instruction->InputAt(1)->IsConstant()) { in VisitShr()
286 if (instruction->InputAt(1)->IsConstant()) { in VisitUShr()
Dinstruction_simplifier_arm64.cc231 if (instruction->InputAt(1)->IsConstant()) { in VisitShl()
237 if (instruction->InputAt(1)->IsConstant()) { in VisitShr()
257 if (instruction->InputAt(1)->IsConstant()) { in VisitUShr()
Dscheduler_arm64.cc93 if (instr->GetRight()->IsConstant()) { in VisitDiv()
161 if (instruction->GetRight()->IsConstant()) { in VisitRem()
323 if (!index->IsConstant()) { in HandleVecAddress()
Dparallel_move_resolver.cc46 if (move.IsEliminated() || move.GetSource().IsConstant()) { in EmitNativeCode()
61 if (!move.IsEliminated() && !move.GetSource().IsConstant()) { in EmitNativeCode()
70 DCHECK(move->GetSource().IsConstant()); in EmitNativeCode()
318 if (!move.IsEliminated() && !move.GetSource().IsConstant()) { in EmitNativeCode()
Dbounds_check_elimination.cc146 bool IsConstant() const { in IsConstant() function in art::ValueBound
217 return bound1.IsConstant() ? bound1 : bound2; in NarrowLowerBound()
253 if (IsConstant() || (IsRelatedToArrayLength() && new_constant <= 0)) { in Add()
268 if (IsConstant() || IsRelatedToArrayLength()) { in Add()
305 bool IsConstantValueRange() const { return lower_.IsConstant() && upper_.IsConstant(); } in IsConstantValueRange()
414 if (!lower.IsConstant() || lower.GetConstant() == std::numeric_limits<int32_t>::min()) { in Narrow()
429 if (upper_bound.IsConstant()) { in Narrow()
464 if ((!upper.IsConstant() || upper.GetConstant() == std::numeric_limits<int32_t>::max()) && in Narrow()
472 if (range->GetLower().IsConstant()) { in Narrow()
642 left_range->GetBound().IsConstant() && in HandleIfBetweenTwoMonotonicValueRanges()
[all …]
Dcode_generator_mips64.cc1210 HConstant* src_cst = source.IsConstant() ? source.GetConstant() : nullptr; in MoveLocation()
1247 } else if (source.IsConstant()) { in MoveLocation()
1351 } else if (source.IsConstant()) { in MoveLocation()
1387 DCHECK(!loc1.IsConstant()); in SwapLocations()
1388 DCHECK(!loc2.IsConstant()); in SwapLocations()
1959 if (right->IsConstant()) { in HandleBinaryOp()
2011 bool use_imm = rhs_location.IsConstant(); in HandleBinaryOp()
2178 bool use_imm = rhs_location.IsConstant(); in HandleShift()
2301 bool temp_needed = instruction->GetIndex()->IsConstant() in VisitArrayGet()
2333 if (index.IsConstant()) { in VisitArrayGet()
[all …]
Dintrinsics_x86_64.cc674 if (pos.IsConstant()) { in CheckPosition()
679 if (length.IsConstant()) { in CheckPosition()
694 if (length.IsConstant()) { in CheckPosition()
719 if (length.IsConstant()) { in CheckPosition()
763 if (!length.IsConstant()) { in VisitSystemArrayCopyChar()
775 if (length.IsConstant()) { in VisitSystemArrayCopyChar()
788 if (src_pos.IsConstant()) { in VisitSystemArrayCopyChar()
795 if (dest_pos.IsConstant()) { in VisitSystemArrayCopyChar()
839 if (src_pos.IsConstant()) { in GenSystemArrayCopyAddresses()
846 if (dst_pos.IsConstant()) { in GenSystemArrayCopyAddresses()
[all …]
Dintrinsics_x86.cc124 if (src_pos.IsConstant()) { in EmitNativeCode()
147 if (dest_pos.IsConstant()) { in EmitNativeCode()
567 if (invoke->InputAt(0)->IsConstant()) { in GenLowestOneBit()
866 if (pos.IsConstant()) { in CheckPosition()
871 if (length.IsConstant()) { in CheckPosition()
886 if (length.IsConstant()) { in CheckPosition()
911 if (length.IsConstant()) { in CheckPosition()
955 if (!length.IsConstant()) { in VisitSystemArrayCopyChar()
961 if (length.IsConstant()) { in VisitSystemArrayCopyChar()
980 if (srcPos.IsConstant()) { in VisitSystemArrayCopyChar()
[all …]
Dcode_generator_x86_64.cc1447 } else if (source.IsConstant()) { in Move()
1464 } else if (source.IsConstant()) { in Move()
1485 } else if (source.IsConstant()) { in Move()
1502 } else if (source.IsConstant()) { in Move()
1623 } else if (right.IsConstant()) { in GenerateCompareTest()
1637 } else if (right.IsConstant()) { in GenerateCompareTest()
1860 if (select->InputAt(1)->IsConstant()) { in VisitSelect()
1998 if (rhs.IsConstant()) { in HandleCondition()
2011 if (rhs.IsConstant()) { in HandleCondition()
2172 if (right.IsConstant()) { in VisitCompare()
[all …]
Dcommon_arm64.h146 if (input->IsConstant() && input->AsConstant()->IsZeroBitPattern()) { in InputCPURegisterOrZeroRegAt()
297 if (constant->IsConstant() in ARM64EncodableConstantOrRegister()
366 return instruction->IsConstant() && instruction->AsConstant()->IsZeroBitPattern(); in IsConstantZeroBitPattern()
Dcode_generator_mips.cc1095 DCHECK(!loc1.IsConstant()); in EmitSwap()
1096 DCHECK(!loc2.IsConstant()); in EmitSwap()
1423 if (source.IsConstant()) { in MoveLocation()
2113 if (right->IsConstant()) { in HandleBinaryOp()
2176 bool use_imm = rhs_location.IsConstant(); in HandleBinaryOp()
2234 bool use_imm = rhs_location.IsConstant(); in HandleBinaryOp()
2425 bool use_imm = rhs_location.IsConstant(); in HandleShift()
2698 bool temp_needed = instruction->GetIndex()->IsConstant() in VisitArrayGet()
2730 if (index.IsConstant()) { in VisitArrayGet()
2743 if (index.IsConstant()) { in VisitArrayGet()
[all …]
Dlocations.h101 bool IsConstant() const { in IsConstant() function
111 DCHECK(IsConstant()); in GetConstant()
297 return IsConstant() ? kConstant : KindField::Decode(value_); in GetKind()
Dinstruction_simplifier.cc355 if (shift_amount->IsConstant()) { in VisitShift()
418 sub->GetLeft()->IsConstant() && in IsSubRegBitsMinusOther()
457 if (ushr->GetRight()->IsConstant() && shl->GetRight()->IsConstant()) { in TryReplaceWithRotate()
1415 if ((input_other->IsUShr() || input_other->IsShr()) && input_other->InputAt(1)->IsConstant()) { in VisitAnd()
1579 if (condition->GetLeft()->IsConstant() && !condition->GetRight()->IsConstant()) { in VisitCondition()
1605 if (!left->IsCompare() || !right->IsConstant() || right->AsIntConstant()->GetValue() != 0) { in VisitCondition()
1962 if (left->IsConstant()) { in VisitSub()
2646 if (cond->IsConstant()) { in VisitDeoptimize()
2679 if (instruction->GetKind() == left->GetKind() && right->IsConstant()) { in TryHandleAssociativeAndCommutativeOperation()
2682 } else if (left->IsConstant() && instruction->GetKind() == right->GetKind()) { in TryHandleAssociativeAndCommutativeOperation()
[all …]
Dcode_generator_arm_vixl.cc1243 if (rhs_loc.IsConstant()) { in GenerateVcmp()
1320 DCHECK(right.IsConstant()); in GenerateLongTestConstant()
1507 ret = condition->GetLocations()->InAt(1).IsConstant() in GenerateTest()
1564 if (right.IsConstant()) { in GenerateEqualLong()
1616 if (right.IsConstant()) { in GenerateConditionLong()
1688 if (right.IsConstant()) { in GenerateConditionIntegralOrNonPrimitive()
1731 if (right.IsConstant()) { in GenerateConditionIntegralOrNonPrimitive()
1782 if (constant->IsConstant() && CanEncodeConstantAs8BitImmediate(constant->AsConstant())) { in Arm8BitEncodableConstantOrRegister()
1800 if (src.IsConstant()) { in CanGenerateConditionalMove()
2667 if (!locations->InAt(1).IsConstant()) { in VisitSelect()
[all …]
Dregister_allocation_resolver.cc348 } else if (!expected_location.IsConstant()) { in ConnectSiblings()
414 (instruction->IsConstant() || instruction->IsCurrentMethod()); in IsMaterializableEntryBlockInstructionOfGraphWithIrreducibleLoop()
465 if (defined_by->IsConstant()) { in ConnectSplitSiblings()
517 && !source.IsConstant()) { in AddMove()
/art/tools/veridex/
Dflow_analysis.h69 CHECK(IsConstant()); in GetConstant()
75 bool IsConstant() const { return source_ == RegisterSource::kConstant; } in IsConstant() function
/art/runtime/verifier/
Dreg_type.h85 bool IsConstant() const { in IsConstant() function
141 return IsChar() || IsInteger() || IsFloat() || IsConstant() || IsByte() || in IsCategory1Types()
158 return IsInteger() || IsConstant() || IsByte() || IsShort() || IsChar() || in IsIntegralTypes()
165 bool IsFloatTypes() const { return IsFloat() || IsConstant(); } in IsFloatTypes()
763 return IsConstant() && ConstantValue() >= 0 && in IsConstantChar()
767 return IsConstant() && in IsConstantByte()
772 return IsConstant() && in IsConstantShort()
Dreg_type.cc623 } else if (IsConstant() && incoming_type.IsConstant()) { in Merge()
710 DCHECK(!IsConstant() || !incoming_type.IsConstant()); in Merge()
845 if (IsConstant() || IsConstantLo() || IsConstantHi()) { in CheckInvariants()

123