[all-commits] [llvm/llvm-project] 1711f2: [CIR] Add cir.min op and refactor cir.max lowering

Henrich Lauko via All-commits all-commits at lists.llvm.org
Sun Mar 8 06:33:26 PDT 2026


  Branch: refs/heads/users/xlauko/cir-min-max-ops
  Home:   https://github.com/llvm/llvm-project
  Commit: 1711f2696d8521a15926908e2f899f53012b5a6e
      https://github.com/llvm/llvm-project/commit/1711f2696d8521a15926908e2f899f53012b5a6e
  Author: xlauko <xlauko at mail.muni.cz>
  Date:   2026-03-08 (Sun, 08 Mar 2026)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIROps.td
    M clang/lib/CIR/Dialect/Transforms/CIRCanonicalize.cpp
    M clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
    A clang/test/CIR/Lowering/binop-int-vector.cir
    M clang/test/CIR/Lowering/binop-signed-int.cir
    M clang/test/CIR/Lowering/binop-unsigned-int.cir
    A clang/test/CIR/Transforms/max-min-idempotent.cir

  Log Message:
  -----------
  [CIR] Add cir.min op and refactor cir.max lowering

Add cir.min operation for integer minimum computation. Refactor cir.max
lowering into a shared lowerMinMaxOp template reused by both ops. Includes
lowering tests for signed, unsigned, and vector types, plus canonicalization
tests.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list