llvm / clangir

A new (MLIR based) high-level IR for clang.
https://clangir.org
Other
327 stars 86 forks source link

Remove collect_unreachable function from the lowering #543

Open gitoleg opened 4 months ago

gitoleg commented 4 months ago

While the collect_unreachable is useful and prevents us from verification errors, we still want to get rid of it and use clean up passes so the unreachable code won't appear in the lowering. Thus we can use the mlir's canonicalizer pass, once #542 will be fixed.