Skip to content

Commit d9595aa

Browse files
Andres-SalamancaJaddyen
authored andcommitted
[CIR] Remove the empty verifier in cir.ifOp (llvm#140457)
The empty verifier is redundant because cir::IfOp has no constraints to enforce its verify() always succeeds.
1 parent d5428fd commit d9595aa

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

clang/include/clang/CIR/Dialect/IR/CIROps.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,6 @@ def IfOp : CIR_Op<"if",
553553
let arguments = (ins CIR_BoolType:$condition);
554554
let regions = (region AnyRegion:$thenRegion, AnyRegion:$elseRegion);
555555
let hasCustomAssemblyFormat=1;
556-
let hasVerifier=1;
557556
let skipDefaultBuilders=1;
558557
let builders = [
559558
OpBuilder<(ins "mlir::Value":$cond, "bool":$withElseRegion,

clang/lib/CIR/Dialect/IR/CIRDialect.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -751,8 +751,6 @@ void cir::IfOp::build(OpBuilder &builder, OperationState &result, Value cond,
751751
elseBuilder(builder, result.location);
752752
}
753753

754-
LogicalResult cir::IfOp::verify() { return success(); }
755-
756754
//===----------------------------------------------------------------------===//
757755
// ScopeOp
758756
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)