[clang] [CIR] Implement switch case simplify (PR #140649)
via cfe-commits
cfe-commits at lists.llvm.org
Wed May 21 13:16:30 PDT 2025
================
@@ -186,7 +288,7 @@ void CIRSimplifyPass::runOnOperation() {
// Collect operations to apply patterns.
llvm::SmallVector<Operation *, 16> ops;
getOperation()->walk([&](Operation *op) {
- if (isa<TernaryOp, SelectOp>(op))
+ if (isa<TernaryOp, SelectOp, SwitchOp>(op))
----------------
Andres-Salamanca wrote:
Just checked and it also fails in the incubator.
https://github.com/llvm/llvm-project/pull/140649
More information about the cfe-commits
mailing list