Home
last modified time | relevance | path

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

/art/compiler/optimizing/
Dconstant_folding.cc148 if ((instruction->GetLeft()->IsNullConstant() && !instruction->GetRight()->CanBeNull()) || in VisitEqual()
149 (instruction->GetRight()->IsNullConstant() && !instruction->GetLeft()->CanBeNull())) { in VisitEqual()
160 if ((instruction->GetLeft()->IsNullConstant() && !instruction->GetRight()->CanBeNull()) || in VisitNotEqual()
161 (instruction->GetRight()->IsNullConstant() && !instruction->GetLeft()->CanBeNull())) { in VisitNotEqual()
184 if (instruction->GetRight()->IsConstant() && in VisitAboveOrEqual()
185 instruction->GetRight()->AsConstant()->IsArithmeticZero()) { in VisitAboveOrEqual()
196 if (instruction->GetRight()->IsConstant() && in VisitBelow()
197 instruction->GetRight()->AsConstant()->IsArithmeticZero()) { in VisitBelow()
232 HInstruction* right = instruction->GetRight(); in VisitAnd()
324 HConstant* cst_right = instruction->GetRight()->AsConstant(); in VisitRem()
[all …]
Dinstruction_simplifier_shared.cc54 if (input_binop->GetRight()->IsConstant() && in TrySimpleMultiplyAccumulatePatterns()
55 input_binop->GetRight()->AsConstant()->IsMinusOne()) { in TrySimpleMultiplyAccumulatePatterns()
68 input_b = input_binop->GetRight(); in TrySimpleMultiplyAccumulatePatterns()
127 HInstruction* binop_right = binop->GetRight(); in TryCombineMultiplyAccumulate()
144 mul->GetRight()); in TryCombineMultiplyAccumulate()
157 mul->GetRight()); in TryCombineMultiplyAccumulate()
171 if (mul->GetLeft() == mul->GetRight()) { in TryCombineMultiplyAccumulate()
176 HInstruction* right = mul->GetRight(); in TryCombineMultiplyAccumulate()
192 HInstruction* right = op->GetRight(); in TryMergeNegatedInput()
340 DCHECK(last_sub->GetRight()->IsSub()); in TryReplaceSubSubWithSubAdd()
[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.cc190 DCHECK(binop->GetLeft()->IsNeg() && binop->GetRight()->IsNeg()); in TryMoveNegOnInputsAfterBinop()
192 HNeg* right_neg = binop->GetRight()->AsNeg(); in TryMoveNegOnInputsAfterBinop()
225 HInstruction* right = op->GetRight(); in TryDeMorganNegationFactoring()
314 HInstruction* binop_right = vec_binop->GetRight(); in TryCombineVecMultiplyAccumulate()
342 mul->GetRight(), in TryCombineVecMultiplyAccumulate()
362 HInstruction* shift_amount = instruction->GetRight(); in VisitShift()
431 return (sub->GetRight() == other && in IsSubRegBitsMinusOther()
441 new (GetGraph()->GetAllocator()) HRor(ushr->GetType(), ushr->GetLeft(), ushr->GetRight()); in ReplaceRotateWithRor()
446 if (!ushr->GetRight()->HasUses()) { in ReplaceRotateWithRor()
447 ushr->GetRight()->GetBlock()->RemoveInstruction(ushr->GetRight()); in ReplaceRotateWithRor()
[all …]
Dinstruction_simplifier_x86_shared.cc32 HInstruction* right = instruction->GetRight(); in TryCombineAndNot()
70 HInstruction* right = instruction->GetRight(); in TryGenerateResetLeastSetBit()
101 HInstruction* right = instruction->GetRight(); in TryGenerateMaskUptoLeastSetBit()
Dscheduler_arm64.cc93 if (instr->GetRight()->IsConstant()) { in VisitDiv()
94 int64_t imm = Int64FromConstant(instr->GetRight()->AsConstant()); in VisitDiv()
161 if (instruction->GetRight()->IsConstant()) { in VisitRem()
162 int64_t imm = Int64FromConstant(instruction->GetRight()->AsConstant()); in VisitRem()
Dbounds_check_elimination.cc76 HInstruction* right = bin_op->GetRight(); in IsAddOrSubAConstant()
1000 HandleIf(instruction, cond->GetLeft(), cond->GetRight(), cond->GetCondition()); in VisitIf()
1032 return shl != nullptr && shl->GetRight()->IsConstant() && shl->GetLeft()->IsDiv(); in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1037 if (HMul* mul = instruction->GetRight()->AsMul()) { in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1038 if (!mul->GetLeft()->IsDiv() || !mul->GetRight()->IsConstant()) { in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1042 const_divisor = Int64FromConstant(mul->GetRight()->AsConstant()); in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1043 } else if (HAdd* add = instruction->GetRight()->AsAdd()) { in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1044 HShl* shl = add->GetRight()->AsShl(); in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1054 int32_t n = shl->GetRight()->AsIntConstant()->GetValue(); in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
1060 } else if (HSub* sub = instruction->GetRight()->AsSub()) { in TryToAssignRangeIfOptimizedRemWithConstantDivisor()
[all …]
Dinstruction_simplifier_shared.h55 HInstruction* right = sub->GetRight(); in IsSubRightSubLeftShl()
Dscheduler_arm.cc110 HInstruction* rhs = instr->GetRight(); in VisitRor()
134 HInstruction* rhs = instr->GetRight(); in HandleShiftLatencies()
499 cond->GetRight()->GetType() == DataType::Type::kBool && in HandleCondition()
834 HInstruction* rhs = instruction->GetRight(); in VisitDiv()
902 HInstruction* rhs = instruction->GetRight(); in VisitRem()
Dnodes.cc1878 if (GetLeft()->IsIntConstant() && GetRight()->IsIntConstant()) { in TryStaticEvaluation()
1879 return Evaluate(GetLeft()->AsIntConstant(), GetRight()->AsIntConstant()); in TryStaticEvaluation()
1881 if (GetRight()->IsIntConstant()) { in TryStaticEvaluation()
1884 return Evaluate(GetLeft()->AsLongConstant(), GetRight()->AsIntConstant()); in TryStaticEvaluation()
1885 } else if (GetRight()->IsLongConstant()) { in TryStaticEvaluation()
1886 return Evaluate(GetLeft()->AsLongConstant(), GetRight()->AsLongConstant()); in TryStaticEvaluation()
1888 } else if (GetLeft()->IsNullConstant() && GetRight()->IsNullConstant()) { in TryStaticEvaluation()
1891 return Evaluate(GetLeft()->AsNullConstant(), GetRight()->AsNullConstant()); in TryStaticEvaluation()
1893 if (GetLeft()->IsFloatConstant() && GetRight()->IsFloatConstant()) { in TryStaticEvaluation()
1894 return Evaluate(GetLeft()->AsFloatConstant(), GetRight()->AsFloatConstant()); in TryStaticEvaluation()
[all …]
Dinstruction_simplifier_arm.cc275 HInstruction* shl = instruction->GetRight()->InputAt(0); in VisitSub()
Dinstruction_simplifier_arm64.cc246 HInstruction* shl = instruction->GetRight()->InputAt(0); in VisitSub()
Dnodes_vector.h314 HInstruction* GetRight() const { return InputAt(1); } in GetRight() function
Dload_store_elimination_test.cc381 HInstruction* other = kind.position_ == Position::kLeft ? ins->AsBinaryOperation()->GetRight() in CheckFinalInstruction()
384 EXPECT_INS_EQ(ins->AsBinaryOperation()->GetLeft(), ins->AsBinaryOperation()->GetRight()) in CheckFinalInstruction()
Dnodes.h3785 HInstruction* GetRight() const { return InputAt(1); }
Dcode_generator_arm_vixl.cc3159 cond->GetRight()->GetType() == DataType::Type::kBool && in HandleCondition()