@@ -2043,22 +2043,19 @@ void ConstantLoader::analyzeForPackedInt(unsigned NumElements) {
20432043 // packed unsigned int with no extra scaling or adjustment.
20442044 PackedIntScale = 1 ;
20452045 PackedIntAdjust = 0 ;
2046- PackedIntMax = Max;
20472046 return ;
20482047 }
20492048 if (Min >= ImmIntVec::MinSInt && Max <= ImmIntVec::MaxSInt) {
20502049 // Values all in the range [MinSInt..MaxSInt]. We can do this with a
20512050 // packed unsigned int with no extra scaling or adjustment.
20522051 PackedIntScale = 1 ;
20532052 PackedIntAdjust = -8 ;
2054- PackedIntMax = Max + 8 ;
20552053 return ;
20562054 }
20572055 // Values all in the range [Min..Min+MaxUInt]. We can do this
20582056 // with a packed int with an adjustment.
20592057 PackedIntScale = 1 ;
20602058 PackedIntAdjust = Min;
2061- PackedIntMax = Max - Min;
20622059 return ;
20632060 }
20642061 // Get unique absolute differences, so we can detect if we have a valid
@@ -2097,7 +2094,6 @@ void ConstantLoader::analyzeForPackedInt(unsigned NumElements) {
20972094 return ; // range of values too big
20982095 }
20992096 PackedIntScale = CurScale;
2100- PackedIntMax = ImmIntVec::MaxUInt;
21012097 // Special case adjust of 0 or -8 as then we can save doing an adjust at all
21022098 // by using unsigned or signed packed vector respectively.
21032099 if (!(Min % CurScale)) {
@@ -2115,7 +2111,6 @@ void ConstantLoader::analyzeForPackedInt(unsigned NumElements) {
21152111 CurScale, static_cast <int64_t >(ImmIntVec::MaxSInt), ResArith) &&
21162112 Max <= ResArith)) {
21172113 PackedIntAdjust = Min;
2118- PackedIntMax = ImmIntVec::MaxSInt;
21192114 return ;
21202115 }
21212116 // Special case all pre-scaled values being in [-15,0] as we can do that
0 commit comments