File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments