Home
last modified time | relevance | path

Searched refs:GetRight (Results 1 – 18 of 18) sorted by relevance

/art/compiler/optimizing/
Dinstruction_simplifier_shared.cc56 if (input_binop->GetRight()->IsConstant() && in TrySimpleMultiplyAccumulatePatterns()
57 input_binop->GetRight()->AsConstant()->IsMinusOne()) { in TrySimpleMultiplyAccumulatePatterns()
70 input_b = input_binop->GetRight(); in TrySimpleMultiplyAccumulatePatterns()
129 HInstruction* binop_right = binop->GetRight(); in TryCombineMultiplyAccumulate()
146 mul->GetRight()); in TryCombineMultiplyAccumulate()
159 mul->GetRight()); in TryCombineMultiplyAccumulate()
173 if (mul->GetLeft() == mul->GetRight()) { in TryCombineMultiplyAccumulate()
178 HInstruction* right = mul->GetRight(); in TryCombineMultiplyAccumulate()
298 DCHECK(last_sub->GetRight()->IsSub()); in TryReplaceSubSubWithSubAdd()
301 HInstruction* last_sub_right = last_sub->GetRight(); in TryReplaceSubSubWithSubAdd()
Dinstruction_simplifier_riscv64.cc51 if (!shl->GetRight()->IsIntConstant()) { in TryReplaceShiftAddWithOneInstruction()
55 const int32_t distance = shl->GetRight()->AsIntConstant()->GetValue(); in TryReplaceShiftAddWithOneInstruction()
64 auto* const add_other_input = add->GetLeft() == shl ? add->GetRight() : add->GetLeft(); in TryReplaceShiftAddWithOneInstruction()
83 auto* const right = add->GetRight(); in VisitAdd()
Dconstant_folding.cc155 if (inst->GetLeft()->IsSelect() == inst->GetRight()->IsSelect()) { in TryRemoveBinaryOperationViaSelect()
165 HSelect* select = left_is_select ? inst->GetLeft()->AsSelect() : inst->GetRight()->AsSelect(); in TryRemoveBinaryOperationViaSelect()
166 HInstruction* maybe_constant = left_is_select ? inst->GetRight() : inst->GetLeft(); in TryRemoveBinaryOperationViaSelect()
274 HInstruction* right = condition->GetRight(); in VisitIf()
311 right = variable->AsCompare()->GetRight(); in VisitIf()
647 if (instruction->GetLeft() == instruction->GetRight() && in VisitEqual()
656 } else if ((instruction->GetLeft()->IsNullConstant() && !instruction->GetRight()->CanBeNull()) || in VisitEqual()
657 (instruction->GetRight()->IsNullConstant() && !instruction->GetLeft()->CanBeNull())) { in VisitEqual()
668 if (instruction->GetLeft() == instruction->GetRight() && in VisitNotEqual()
677 } else if ((instruction->GetLeft()->IsNullConstant() && !instruction->GetRight()->CanBeNull()) || in VisitNotEqual()
[all …]
Dnodes_shared.cc36 *shift_amount = instruction->AsShl()->GetRight()->AsIntConstant()->GetValue(); in GetOpInfoFromInstruction()
39 *shift_amount = instruction->AsShr()->GetRight()->AsIntConstant()->GetValue(); in GetOpInfoFromInstruction()
42 *shift_amount = instruction->AsUShr()->GetRight()->AsIntConstant()->GetValue(); in GetOpInfoFromInstruction()
Dcode_generator_utils.cc151 if (IsNonNegativeUse(cond, cond->GetRight())) { in IsComparedValueNonNegativeInBlock()
157 DCHECK_EQ(cond->GetRight(), value); in IsComparedValueNonNegativeInBlock()
174 if (IsNonNegativeUse(cond, cond->GetRight())) { in IsComparedValueNonNegativeInBlock()
180 DCHECK_EQ(cond->GetRight(), value); in IsComparedValueNonNegativeInBlock()
Dinstruction_simplifier.cc196 DCHECK(binop->GetLeft()->IsNeg() && binop->GetRight()->IsNeg()); in TryMoveNegOnInputsAfterBinop()
198 HNeg* right_neg = binop->GetRight()->AsNeg(); in TryMoveNegOnInputsAfterBinop()
231 HInstruction* right = op->GetRight(); in TryDeMorganNegationFactoring()
320 HInstruction* binop_right = vec_binop->GetRight(); in TryCombineVecMultiplyAccumulate()
348 mul->GetRight(), in TryCombineVecMultiplyAccumulate()
399 HInstruction* shr_amount = instruction->GetRight(); in TryReplaceShiftsByConstantWithTypeConversion()
444 if (shl->GetRight() != shr_amount) { in TryReplaceShiftsByConstantWithTypeConversion()
476 HInstruction* shift_amount = instruction->GetRight(); in VisitShift()
550 return (sub->GetRight() == other && in IsSubRegBitsMinusOther()
560 new (GetGraph()->GetAllocator()) HRor(ushr->GetType(), ushr->GetLeft(), ushr->GetRight()); in ReplaceRotateWithRor()
[all …]
Dinstruction_simplifier_x86_shared.cc33 HInstruction* right = instruction->GetRight(); in TryCombineAndNot()
71 HInstruction* right = instruction->GetRight(); in TryGenerateResetLeastSetBit()
102 HInstruction* right = instruction->GetRight(); in TryGenerateMaskUptoLeastSetBit()
Dbounds_check_elimination.cc76 HInstruction* right = bin_op->GetRight(); in IsAddOrSubAConstant()
1013 HandleIf(instruction, cond->GetLeft(), cond->GetRight(), cond->GetCondition()); in VisitIf()
1045 return shl != nullptr && shl->GetRight()->IsConstant() && shl->GetLeft()->IsDiv(); in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1050 if (HMul* mul = instruction->GetRight()->AsMulOrNull()) { in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1051 if (!mul->GetLeft()->IsDiv() || !mul->GetRight()->IsConstant()) { in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1055 const_divisor = Int64FromConstant(mul->GetRight()->AsConstant()); in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1056 } else if (HAdd* add = instruction->GetRight()->AsAddOrNull()) { in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1057 HShl* shl = add->GetRight()->AsShlOrNull(); in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1067 int32_t n = shl->GetRight()->AsIntConstant()->GetValue(); in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1073 } else if (HSub* sub = instruction->GetRight()->AsSubOrNull()) { in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
[all …]
Dscheduler_arm64.cc202 if (instr->GetRight()->IsConstant()) { in VisitDiv()
203 int64_t imm = Int64FromConstant(instr->GetRight()->AsConstant()); in VisitDiv()
270 if (instruction->GetRight()->IsConstant()) { in VisitRem()
271 int64_t imm = Int64FromConstant(instruction->GetRight()->AsConstant()); in VisitRem()
Dinstruction_simplifier_shared.h58 HInstruction* right = sub->GetRight(); in IsSubRightSubLeftShl()
Dscheduler_arm.cc221 HInstruction* rhs = instr->GetRight(); in VisitRor()
245 HInstruction* rhs = instr->GetRight(); in HandleShiftLatencies()
610 cond->GetRight()->GetType() == DataType::Type::kBool && in HandleCondition()
945 HInstruction* rhs = instruction->GetRight(); in VisitDiv()
1008 HInstruction* rhs = instruction->GetRight(); in VisitRem()
Dinstruction_simplifier_arm.cc280 HInstruction* shl = instruction->GetRight()->InputAt(0); in VisitSub()
Dinstruction_simplifier_arm64.cc251 HInstruction* shl = instruction->GetRight()->InputAt(0); in VisitSub()
Ddead_code_elimination.cc490 block_cond->GetRight() != dominator_cond->GetRight() || in MaybeAddPhi()
Dnodes.cc1823 return TryStaticEvaluation(GetLeft(), GetRight()); in TryStaticEvaluation()
1852 if (GetRight()->IsConstant()) { in GetConstantRight()
1853 return GetRight()->AsConstant(); in GetConstantRight()
1868 return GetRight(); in GetLeastConstantLeft()
Dnodes_vector.h314 HInstruction* GetRight() const { return InputAt(1); } in GetRight() function
Dnodes.h3933 HInstruction* GetRight() const { return InputAt(1); }
Dcode_generator_arm_vixl.cc3394 cond->GetRight()->GetType() == DataType::Type::kBool && in HandleCondition()