Make group ops uniform if gpu.launch is their direct parent.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp | ||
---|---|---|
435–438 | this is only correct if we assume all control flow is structured control flow right? I believe LaunchOp region is allowed to have multiple blocks. I wonder if we should check that the op belongs to the first block of LaunchOp region instead? |
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp | ||
---|---|---|
435–438 |
Does it really? I'm only using structured cf so I've never checked it. I will add a check so it will only do fold for entry blocks then. |
this is only correct if we assume all control flow is structured control flow right? I believe LaunchOp region is allowed to have multiple blocks. I wonder if we should check that the op belongs to the first block of LaunchOp region instead?