Searched refs:a_constant (Results 1 – 4 of 4) sorted by relevance
/aosp12/art/compiler/optimizing/ |
H A D | induction_var_range.cc | 100 if (v.is_known && v.a_constant >= 1) { in SimplifyMax() 888 if (v1.a_constant == 0) { in AddValue() 890 } else if (v2.a_constant == 0) { in AddValue() 892 } else if (v1.instruction == v2.instruction && IsSafeAdd(v1.a_constant, v2.a_constant)) { in AddValue() 893 return Value(v1.instruction, v1.a_constant + v2.a_constant, b); in AddValue() 902 if (v1.a_constant == 0 && IsSafeSub(0, v2.a_constant)) { in SubValue() 906 } else if (v1.instruction == v2.instruction && IsSafeSub(v1.a_constant, v2.a_constant)) { in SubValue() 907 return Value(v1.instruction, v1.a_constant - v2.a_constant, b); in SubValue() 915 if (v1.a_constant == 0) { in MulValue() 929 if (v1.is_known && v2.is_known && v1.a_constant == 0 && v2.a_constant == 0) { in DivValue() [all …]
|
H A D | induction_var_range.h | 46 Value() : instruction(nullptr), a_constant(0), b_constant(0), is_known(false) {} in Value() 48 : instruction(a != 0 ? i : nullptr), a_constant(a), b_constant(b), is_known(true) {} in Value() 52 int32_t a_constant; member
|
H A D | bounds_check_elimination.cc | 1499 if (v1.is_known && (v1.a_constant == 0 || v1.a_constant == 1) && in InductionRangeFitsIn() 1500 v2.is_known && (v2.a_constant == 0 || v2.a_constant == 1)) { in InductionRangeFitsIn() 1501 DCHECK(v1.a_constant == 1 || v1.instruction == nullptr); in InductionRangeFitsIn() 1502 DCHECK(v2.a_constant == 1 || v2.instruction == nullptr); in InductionRangeFitsIn()
|
H A D | induction_var_range_test.cc | 45 EXPECT_EQ(v1.a_constant, v2.a_constant); in ExpectEqual()
|