llvm / clangir

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

[CIR][Transforms] Move RemoveRedundantBranches logic into BrOp::fold method #663

Closed Kritoooo closed 3 months ago

Kritoooo commented 3 months ago

This pr is a part of #593 . Move RemoveRedundantBranches logic into BrOp::fold method and modify tests.