@@ -1134,7 +1134,7 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
1134
1134
return Def->replaceAllUsesWith (
1135
1135
Builder.createLogicalAnd (X, Builder.createLogicalAnd (Y, Z)));
1136
1136
1137
- if (match (Def, m_c_Mul (m_VPValue (A), m_OneInt ())))
1137
+ if (match (Def, m_c_Mul (m_VPValue (A), m_One ())))
1138
1138
return Def->replaceAllUsesWith (A);
1139
1139
1140
1140
if (match (Def, m_c_Mul (m_VPValue (A), m_ZeroInt ())))
@@ -1176,14 +1176,14 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
1176
1176
}
1177
1177
1178
1178
// Remove redundant DerviedIVs, that is 0 + A * 1 -> A and 0 + 0 * x -> 0.
1179
- if ((match (Def, m_DerivedIV (m_ZeroInt (), m_VPValue (A), m_OneInt ())) ||
1179
+ if ((match (Def, m_DerivedIV (m_ZeroInt (), m_VPValue (A), m_One ())) ||
1180
1180
match (Def, m_DerivedIV (m_ZeroInt (), m_ZeroInt (), m_VPValue ()))) &&
1181
1181
TypeInfo.inferScalarType (Def->getOperand (1 )) ==
1182
1182
TypeInfo.inferScalarType (Def))
1183
1183
return Def->replaceAllUsesWith (Def->getOperand (1 ));
1184
1184
1185
1185
if (match (Def, m_VPInstruction<VPInstruction::WideIVStep>(m_VPValue (X),
1186
- m_OneInt ()))) {
1186
+ m_One ()))) {
1187
1187
Type *WideStepTy = TypeInfo.inferScalarType (Def);
1188
1188
if (TypeInfo.inferScalarType (X) != WideStepTy)
1189
1189
X = Builder.createWidenCast (Instruction::Trunc, X, WideStepTy);
0 commit comments