[Mlir-commits] [mlir] [mlir][transforms] Process RegionBranchOp with empty region (PR #123895)

Xiang Li llvmlistbot at llvm.org
Fri Jan 31 16:56:16 PST 2025


python3kgae wrote:

> RegionBranchOpInterface

I did a quick scan for the use of RegionBranchOpInterface. 
When using getRegions on a RegionBranchOpInterface, most cases use for (Block &block : region). 
Some use the region in for (Region &region : regionBranchOp->getRegions()) as an argument for other functions, which don’t access inside of the region.

The only place I saw that assumes the region should not be empty is RemoveDeadValues.


https://github.com/llvm/llvm-project/pull/123895


More information about the Mlir-commits mailing list