Skip to content

Commit 4862fe6

Browse files
Fix build after e65ac45
Signed-off-by: Whitney Tsang <[email protected]>
1 parent 5570352 commit 4862fe6

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

third_party/intel/lib/TritonIntelGPUTransforms/AccelerateMatmul.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ getWarpsPerTile(tt::DotOp dotOp, ttgi::DpasEncodingAttr::DPASCapability dpasCap,
5252
return op->getParentRegion() == dotOp->getParentRegion();
5353
};
5454

55-
SetVector<Operation *> slices = multiRootGetSlice(dotOp, {filter});
55+
SetVector<Operation *> slices = getSlice(dotOp, {filter});
5656
for (Operation *op : slices) {
5757
if (isa<tt::DotOp>(op) && (op != dotOp)) {
5858
if (auto forOp = op->getParentOfType<scf::ForOp>()) {

third_party/intel/lib/TritonIntelGPUTransforms/Coalesce.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ struct CoalescePass
6666
llvm::SmallSetVector<Operation *, 32> memAccessesSameOrder;
6767
memAccessesSameOrder.insert(op);
6868
if (ptr.getDefiningOp()) {
69-
for (Operation *use : mlir::multiRootGetSlice(op)) {
69+
for (Operation *use : mlir::getSlice(op)) {
7070
Value val = getMemAccessPtr(use);
7171
if (!val || !matchesShape(val) || memAccessesSameOrder.contains(use))
7272
continue;

third_party/intel/lib/TritonIntelGPUTransforms/RemoveLayoutConversions.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#include "mlir/Analysis/SliceAnalysis.h"
2+
#include "mlir/Analysis/TopologicalSortUtils.h"
23
#include "mlir/Dialect/SCF/IR/SCF.h"
34
#include "mlir/IR/BuiltinAttributes.h"
45
#include "mlir/IR/Dominance.h"
@@ -1151,7 +1152,7 @@ void LayoutRematerialization::rewriteSlice(SetVector<Value> &slice,
11511152
}
11521153
}
11531154
slice.set_subtract(valuesWithExistingRemat);
1154-
opsToRewrite = multiRootTopologicalSort(opsToRewrite);
1155+
opsToRewrite = mlir::topologicalSort(opsToRewrite);
11551156

11561157
// replaceAllUsesWith calls delayed until after initial rewrite.
11571158
// This is required for slice.count(value) to work mid rewrite.

0 commit comments

Comments
 (0)