File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed
IGC/VectorCompiler/lib/GenXCodeGen Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -2043,22 +2043,19 @@ void ConstantLoader::analyzeForPackedInt(unsigned NumElements) {
2043
2043
// packed unsigned int with no extra scaling or adjustment.
2044
2044
PackedIntScale = 1 ;
2045
2045
PackedIntAdjust = 0 ;
2046
- PackedIntMax = Max;
2047
2046
return ;
2048
2047
}
2049
2048
if (Min >= ImmIntVec::MinSInt && Max <= ImmIntVec::MaxSInt) {
2050
2049
// Values all in the range [MinSInt..MaxSInt]. We can do this with a
2051
2050
// packed unsigned int with no extra scaling or adjustment.
2052
2051
PackedIntScale = 1 ;
2053
2052
PackedIntAdjust = -8 ;
2054
- PackedIntMax = Max + 8 ;
2055
2053
return ;
2056
2054
}
2057
2055
// Values all in the range [Min..Min+MaxUInt]. We can do this
2058
2056
// with a packed int with an adjustment.
2059
2057
PackedIntScale = 1 ;
2060
2058
PackedIntAdjust = Min;
2061
- PackedIntMax = Max - Min;
2062
2059
return ;
2063
2060
}
2064
2061
// Get unique absolute differences, so we can detect if we have a valid
@@ -2097,7 +2094,6 @@ void ConstantLoader::analyzeForPackedInt(unsigned NumElements) {
2097
2094
return ; // range of values too big
2098
2095
}
2099
2096
PackedIntScale = CurScale;
2100
- PackedIntMax = ImmIntVec::MaxUInt;
2101
2097
// Special case adjust of 0 or -8 as then we can save doing an adjust at all
2102
2098
// by using unsigned or signed packed vector respectively.
2103
2099
if (!(Min % CurScale)) {
@@ -2115,7 +2111,6 @@ void ConstantLoader::analyzeForPackedInt(unsigned NumElements) {
2115
2111
CurScale, static_cast <int64_t >(ImmIntVec::MaxSInt), ResArith) &&
2116
2112
Max <= ResArith)) {
2117
2113
PackedIntAdjust = Min;
2118
- PackedIntMax = ImmIntVec::MaxSInt;
2119
2114
return ;
2120
2115
}
2121
2116
// Special case all pre-scaled values being in [-15,0] as we can do that
Original file line number Diff line number Diff line change @@ -46,9 +46,6 @@ class ConstantLoader {
46
46
int64_t PackedIntScale = 0 ; // amount to scale packed int vector by
47
47
int64_t PackedIntAdjust = 0 ; // amount to adjust by, special casing 0 or -8
48
48
// when PackedIntScale is 1
49
- unsigned PackedIntMax = 0 ; // max value in packed vector, used when scale is
50
- // 1 and adjust is 0 to tell whether it would fit
51
- // in 0..7
52
49
bool PackedFloat = false ;
53
50
54
51
public:
You can’t perform that action at this time.
0 commit comments