Skip to content

Commit 5b4e69e

Browse files
[NFC][MatmulLoopPipeline] Remove unnecessary argument (#4012)
Note: this change split from #3634. Signed-off-by: Whitney Tsang <[email protected]>
1 parent 05a3c79 commit 5b4e69e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

third_party/intel/lib/TritonIntelGPUTransforms/Pipeliner/MatmulLoopPipeline.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,11 @@ static ttg::DotOperandEncodingAttr allTransitiveUsesHaveDotEncoding(Value val) {
8484
}
8585

8686
/// Create a prefetch operation for the given load operation.
87-
static void createPrefetchOp(scf::ForOp &forOp, tt::LoadOp loadOp, Value ptr) {
87+
static void createPrefetchOp(scf::ForOp &forOp, tt::LoadOp loadOp) {
8888
OpBuilder builder(forOp);
8989
builder.setInsertionPoint(loadOp);
9090
auto prefetchOp = builder.create<ttgi::PrefetchOp>(
91-
loadOp->getLoc(), ptr, loadOp.getCache(), loadOp.getEvict(),
91+
loadOp->getLoc(), loadOp.getPtr(), loadOp.getCache(), loadOp.getEvict(),
9292
loadOp.getIsVolatile());
9393

9494
// inherit attributes from the load operation
@@ -102,7 +102,7 @@ static void createPrefetchOps(scf::ForOp &forOp,
102102
assert(!loads.empty() && "Expecting at least one load operation");
103103
for (const LoadDotOperand &loadOperand : loads) {
104104
tt::LoadOp loadOp = loadOperand.load;
105-
createPrefetchOp(forOp, loadOp, loadOp.getPtr());
105+
createPrefetchOp(forOp, loadOp);
106106
}
107107
}
108108

0 commit comments

Comments
 (0)