Lines Matching refs:constant
57 void PropagateValue(HBasicBlock* starting_block, HInstruction* variable, HConstant* constant);
128 HConstant* constant = inst->TryStaticEvaluation(); in VisitUnaryOperation() local
129 if (constant != nullptr) { in VisitUnaryOperation()
130 inst->ReplaceWith(constant); in VisitUnaryOperation()
198 HConstant* constant = inst->TryStaticEvaluation(); in VisitBinaryOperation() local
199 if (constant != nullptr) { in VisitBinaryOperation()
200 inst->ReplaceWith(constant); in VisitBinaryOperation()
221 HConstant* constant) { in PropagateValue() argument
231 starting_block->GetFirstInstruction(), constant, /* strictly_dominated= */ false); in PropagateValue()
289 HConstant* constant = left->IsConstant() ? left->AsConstant() : right->AsConstant(); in VisitIf() local
299 DCHECK(!DataType::IsFloatingPointType(constant->GetType())); in VisitIf()
305 if (!constant->IsArithmeticZero()) { in VisitIf()
318 constant = left->IsConstant() ? left->AsConstant() : right->AsConstant(); in VisitIf()
325 DCHECK(!DataType::IsFloatingPointType(constant->GetType())); in VisitIf()
333 PropagateValue(starting_block, variable, constant); in VisitIf()
339 constant->IsIntConstant() && in VisitIf()
340 (constant->AsIntConstant()->IsTrue() || constant->AsIntConstant()->IsFalse())) { in VisitIf()
345 HConstant* other_constant = constant->AsIntConstant()->IsTrue() ? in VisitIf()
348 DCHECK_NE(other_constant, constant); in VisitIf()
607 HConstant* constant = inst->TryStaticEvaluation(); in VisitTypeConversion() local
608 if (constant != nullptr) { in VisitTypeConversion()
609 inst->ReplaceWith(constant); in VisitTypeConversion()