[clang] [CIR] Allow boolean operands in cir.cmp (PR #206846)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Jun 30 15:53:00 PDT 2026
================
@@ -2949,6 +2949,16 @@ mlir::LogicalResult CIRToLLVMCmpOpLowering::matchAndRewrite(
return mlir::success();
}
+ if (mlir::isa<cir::BoolType>(type)) {
----------------
erichkeane wrote:
Am I missing something, or are a bunch of the below operations all identical?
Can we combine the 2 pointertype ones and this all with a `mlir::isa<cir::BoolType, cir::PointerType, cir::VPtrType>(type)` as the 'if'? Or am I missin ga difference between them?
https://github.com/llvm/llvm-project/pull/206846
More information about the cfe-commits
mailing list