File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1940,7 +1940,7 @@ class BoUpSLP {
1940
1940
return nullptr ;
1941
1941
}
1942
1942
1943
- bool isInSchedulingRegion (ScheduleData *SD) {
1943
+ bool isInSchedulingRegion (ScheduleData *SD) const {
1944
1944
return SD->SchedulingRegionID == SchedulingRegionID;
1945
1945
}
1946
1946
@@ -6221,12 +6221,12 @@ class HorizontalReduction {
6221
6221
6222
6222
// / Checks if two operation data are both a reduction op or both a reduced
6223
6223
// / value.
6224
- bool operator ==(const OperationData &OD) {
6224
+ bool operator ==(const OperationData &OD) const {
6225
6225
assert (((Kind != OD.Kind ) || ((!LHS == !OD.LHS ) && (!RHS == !OD.RHS ))) &&
6226
6226
" One of the comparing operations is incorrect." );
6227
6227
return this == &OD || (Kind == OD.Kind && Opcode == OD.Opcode );
6228
6228
}
6229
- bool operator !=(const OperationData &OD) { return !(*this == OD); }
6229
+ bool operator !=(const OperationData &OD) const { return !(*this == OD); }
6230
6230
void clear () {
6231
6231
Opcode = 0 ;
6232
6232
LHS = nullptr ;
You can’t perform that action at this time.
0 commit comments