Skip to content

Commit

Permalink
Adding all indices backwardslice to skip
Browse files Browse the repository at this point in the history
Signed-off-by: jerryyin <[email protected]>
  • Loading branch information
jerryyin committed Jan 22, 2025
1 parent 2e2b1f0 commit 23dc093
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions compiler/src/iree/compiler/Codegen/LLVMGPU/KernelConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2544,14 +2544,10 @@ LogicalResult initGPULaunchConfig(FunctionOpInterface funcOp) {
dyn_cast<linalg::GenericOp>(indices.getDefiningOp())) {
genericToSkip.insert(genericOp);
}
// If scatter's backward slices are generic ops, mark them as to skip too.
// Mark scatter's backward slices as to skip too.
SetVector<Operation *> slices;
getBackwardSlice(indices, &slices);
for (auto slice : slices) {
if (isa<linalg::GenericOp>(slice)) {
genericToSkip.insert(slice);
}
}
genericToSkip.insert(slices.begin(), slices.end());
}
}

Expand Down

0 comments on commit 23dc093

Please sign in to comment.