circt
circt copied to clipboard
[FirRegLowering] Add a limit to nested-if depth
Mux2if lowering in fitted lowering could create deeply nested regions whose depth is up to 65536. Since mlir is not capable of handling deeply nested regions(there are still recursions for regions in the mlir codebase e.g walk, CSE and etc.), this PR adds a limit to the depth.