[SLP] Silence -Wswitch warning after ec146cb7c0

{min,max}imum(X, X) is X so we can take the same path as min/max.
This commit is contained in:
Benjamin Kramer
2023-06-20 19:49:36 +02:00
parent 6fe9cfe413
commit 51e917d4af

View File

@@ -13871,6 +13871,8 @@ private:
case RecurKind::UMin:
case RecurKind::FMax:
case RecurKind::FMin:
case RecurKind::FMaximum:
case RecurKind::FMinimum:
// res = vv
return VectorizedValue;
case RecurKind::Mul:
@@ -13918,6 +13920,8 @@ private:
case RecurKind::UMin:
case RecurKind::FMax:
case RecurKind::FMin:
case RecurKind::FMaximum:
case RecurKind::FMinimum:
// No need for multiple min/max(s) of the same value.
LLVM_DEBUG(dbgs() << "SLP: Max/min of same " << VectorizedValue
<< ". (HorRdx)\n");