Skip to content

Commit 0b9ddd2

Browse files
committed
more fixes
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent 4689755 commit 0b9ddd2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/Conversion/TritonGPUToLLVM/ScanOpToLLVM.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ static void warpScan(SmallVector<SmallVector<Value>> &srcValues,
7676
acc[j] = select(mask, tempAcc[j], acc[j]);
7777
}
7878
}
79-
srcValues[srcIndex] = acc;
79+
srcValues[srcIndex] = std::move(acc);
8080
}
8181
}
8282

@@ -224,7 +224,7 @@ static void AddPartialReduce(SmallVector<SmallVector<Value>> &srcValues,
224224
srcValues[srcIndex - i * elementStride][j]);
225225
}
226226
}
227-
srcValues[srcIndex - i * elementStride] = laneValue;
227+
srcValues[srcIndex - i * elementStride] = std::move(laneValue);
228228
}
229229
// For the next chunk start back from the value containing the
230230
// accumulated value of all the warps.
@@ -303,7 +303,7 @@ static void AddPartialReduceOneWarp(SmallVector<SmallVector<Value>> &srcValues,
303303
srcValues[srcIndex - i * elementStride][j], laneValue[j]);
304304
}
305305
}
306-
srcValues[srcIndex - i * elementStride] = laneValue;
306+
srcValues[srcIndex - i * elementStride] = std::move(laneValue);
307307
}
308308
// For the next chunk start back from the value containing the
309309
// accumulated value of all the warps.

third_party/intel/lib/TritonIntelGPUToLLVM/ScanOpToLLVM.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static void warpScan(SmallVector<SmallVector<Value>> &srcValues,
7474
acc[j] = select(mask, tempAcc[j], acc[j]);
7575
}
7676
}
77-
srcValues[srcIndex] = acc;
77+
srcValues[srcIndex] = std::move(acc);
7878
}
7979
}
8080

@@ -222,7 +222,7 @@ static void AddPartialReduce(SmallVector<SmallVector<Value>> &srcValues,
222222
srcValues[srcIndex - i * elementStride][j]);
223223
}
224224
}
225-
srcValues[srcIndex - i * elementStride] = laneValue;
225+
srcValues[srcIndex - i * elementStride] = std::move(laneValue);
226226
}
227227
// For the next chunk start back from the value containing the
228228
// accumulated value of all the warps.
@@ -301,7 +301,7 @@ static void AddPartialReduceOneWarp(SmallVector<SmallVector<Value>> &srcValues,
301301
srcValues[srcIndex - i * elementStride][j], laneValue[j]);
302302
}
303303
}
304-
srcValues[srcIndex - i * elementStride] = laneValue;
304+
srcValues[srcIndex - i * elementStride] = std::move(laneValue);
305305
}
306306
// For the next chunk start back from the value containing the
307307
// accumulated value of all the warps.

0 commit comments

Comments
 (0)