[llvm-branch-commits] [clang] [CIR] Add cir.min op and refactor cir.max lowering (PR #185276)

Erich Keane via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Mar 9 07:29:31 PDT 2026


================
@@ -2390,13 +2390,38 @@ def CIR_MaxOp : CIR_BinaryOp<"max", CIR_AnyIntOrVecOfIntType, [
   let summary = "Integer maximum";
   let description = [{
     The `cir.max` operation computes the maximum of two integer operands.
-    Both operands and the result must have the same integer type.
+    Both operands and the result must have the same integer type or vector of
+    integer type.
----------------
erichkeane wrote:

Not doing vector float at all, or yet? 

https://github.com/llvm/llvm-project/pull/185276


More information about the llvm-branch-commits mailing list