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() {
4643
4643
const RecurrenceDescriptor &RdxDesc = PhiDescriptorPair.second ;
4644
4644
// When finding the min width used by the recurrence we need to account
4645
4645
// 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 ());
4652
4652
}
4653
4653
} else {
4654
4654
for (Type *T : ElementTypesInLoop) {
You can’t perform that action at this time.
0 commit comments