Skip to content

Commit 663aea2

Browse files
authored
[LV] Clean up unused template args of min/max (NFC) (#141778)
1 parent 1064768 commit 663aea2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4643,12 +4643,12 @@ LoopVectorizationCostModel::getSmallestAndWidestTypes() {
46434643
const RecurrenceDescriptor &RdxDesc = PhiDescriptorPair.second;
46444644
// When finding the min width used by the recurrence we need to account
46454645
// for casts on the input operands of the recurrence.
4646-
MinWidth = std::min<unsigned>(
4647-
MinWidth, std::min<unsigned>(
4648-
RdxDesc.getMinWidthCastToRecurrenceTypeInBits(),
4649-
RdxDesc.getRecurrenceType()->getScalarSizeInBits()));
4650-
MaxWidth = std::max<unsigned>(
4651-
MaxWidth, RdxDesc.getRecurrenceType()->getScalarSizeInBits());
4646+
MinWidth = std::min(
4647+
MinWidth,
4648+
std::min(RdxDesc.getMinWidthCastToRecurrenceTypeInBits(),
4649+
RdxDesc.getRecurrenceType()->getScalarSizeInBits()));
4650+
MaxWidth = std::max(MaxWidth,
4651+
RdxDesc.getRecurrenceType()->getScalarSizeInBits());
46524652
}
46534653
} else {
46544654
for (Type *T : ElementTypesInLoop) {

0 commit comments

Comments
 (0)