Lines Matching refs:a_constant
110 if (v.is_known && v.a_constant == 1 && v.b_constant <= 0) { in SimplifyMin()
122 if (v.is_known && v.a_constant >= 1) { in SimplifyMax()
128 IsInt64AndGet(v.instruction->InputAt(1), &value) && v.a_constant == value) { in SimplifyMax()
133 if (v.a_constant == 1 && IsMaxAtHint(v.instruction, hint, &suitable)) { in SimplifyMax()
142 return v.is_known && v.a_constant == 0; in IsConstantValue()
910 if (v1.a_constant == 0) { in AddValue()
911 return Value(v2.instruction, v2.a_constant, b); in AddValue()
912 } else if (v2.a_constant == 0) { in AddValue()
913 return Value(v1.instruction, v1.a_constant, b); in AddValue()
914 } else if (v1.instruction == v2.instruction && IsSafeAdd(v1.a_constant, v2.a_constant)) { in AddValue()
915 return Value(v1.instruction, v1.a_constant + v2.a_constant, b); in AddValue()
924 if (v1.a_constant == 0 && IsSafeSub(0, v2.a_constant)) { in SubValue()
925 return Value(v2.instruction, -v2.a_constant, b); in SubValue()
926 } else if (v2.a_constant == 0) { in SubValue()
927 return Value(v1.instruction, v1.a_constant, b); in SubValue()
928 } else if (v1.instruction == v2.instruction && IsSafeSub(v1.a_constant, v2.a_constant)) { in SubValue()
929 return Value(v1.instruction, v1.a_constant - v2.a_constant, b); in SubValue()
937 if (v1.a_constant == 0) { in MulValue()
938 if (IsSafeMul(v1.b_constant, v2.a_constant) && IsSafeMul(v1.b_constant, v2.b_constant)) { in MulValue()
939 return Value(v2.instruction, v1.b_constant * v2.a_constant, v1.b_constant * v2.b_constant); in MulValue()
941 } else if (v2.a_constant == 0) { in MulValue()
942 if (IsSafeMul(v1.a_constant, v2.b_constant) && IsSafeMul(v1.b_constant, v2.b_constant)) { in MulValue()
943 return Value(v1.instruction, v1.a_constant * v2.b_constant, v1.b_constant * v2.b_constant); in MulValue()
951 if (v1.is_known && v2.is_known && v1.a_constant == 0 && v2.a_constant == 0) { in DivValue()
961 if (v1.instruction == v2.instruction && v1.a_constant == v2.a_constant) { in MergeVal()
962 return Value(v1.instruction, v1.a_constant, in MergeVal()