================
@@ -901,13 +901,9 @@ class ScalarExprEmitter : public 
StmtVisitor<ScalarExprEmitter, mlir::Value> {
       assert(e->getOpcode() == BO_EQ || e->getOpcode() == BO_NE);
 
       BinOpInfo boInfo = emitBinOps(e);
-      if (e->getOpcode() == BO_EQ) {
-        result =
-            builder.create<cir::ComplexEqualOp>(loc, boInfo.lhs, boInfo.rhs);
-      } else {
-        result =
-            builder.create<cir::ComplexNotEqualOp>(loc, boInfo.lhs, 
boInfo.rhs);
-      }
+      cir::CmpOpKind opKind =
+          e->getOpcode() == BO_EQ ? cir::CmpOpKind::eq : cir::CmpOpKind::ne;
+      result = builder.create<cir::CmpOp>(loc, opKind, boInfo.lhs, boInfo.rhs);
----------------
AmrDeveloper wrote:

Thanks :D

https://github.com/llvm/llvm-project/pull/146129
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to