We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RewriteStackPtr
mod.walk
1 parent 4f35147 commit c966e3bCopy full SHA for c966e3b
third_party/intel/lib/TritonIntelGPUTransforms/RewriteStackPtr.cpp
@@ -38,11 +38,9 @@ struct TritonIntelGPURewriteStackPtrPass
38
39
// 1: Process function arguments for root functions
40
if (!usePoison) {
41
- mod.walk([&](FunctionOpInterface funcOp) {
42
- if (allocation.isRoot(funcOp)) {
43
- insertFuncArguments(funcOp, ptrTy);
44
- }
45
- });
+ for (auto &root : allocation.getRoots()) {
+ insertFuncArguments(root, ptrTy);
+ }
46
}
47
48
// 2: Collect all AddressOfOp that need updating
0 commit comments