[clang] [CIR] Fix unary op folding (PR #132269)

2025-04-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Andy Kaylor (andykaylor) Changes Unary ops had previously been omitted from the list of ops handled in the CIRCanonicalizePass. Although the incubator code doesn't use them directly, the mlir folding code does. This change enables foldin

[clang] [CIR] Fix unary op folding (PR #132269)

2025-04-05 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor updated https://github.com/llvm/llvm-project/pull/132269 >From bee4e73e125c5643eb321ffef7b2b8e25f881267 Mon Sep 17 00:00:00 2001 From: Andy Kaylor Date: Thu, 20 Mar 2025 11:23:02 -0700 Subject: [PATCH 1/2] [CIR] Fix unary op folding Unary ops had previously been o

[clang] [CIR] Fix unary op folding (PR #132269)

2025-03-20 Thread Bruno Cardoso Lopes via cfe-commits
https://github.com/bcardosolopes approved this pull request. LGTM, the only difference from incubator is the misleading comment, thanks Andy! Will update comment over there as well. https://github.com/llvm/llvm-project/pull/132269 ___ cfe-commits mail

[clang] [CIR] Fix unary op folding (PR #132269)

2025-03-20 Thread Erich Keane via cfe-commits
https://github.com/erichkeane approved this pull request. I don't have a problem wtih this, but one of the other reviewers/CIR folks ought to doublecheck. https://github.com/llvm/llvm-project/pull/132269 ___ cfe-commits mailing list cfe-commits@lists.

[clang] [CIR] Fix unary op folding (PR #132269)

2025-03-20 Thread Andy Kaylor via cfe-commits
https://github.com/andykaylor created https://github.com/llvm/llvm-project/pull/132269 Unary ops had previously been omitted from the list of ops handled in the CIRCanonicalizePass. Although the incubator code doesn't use them directly, the mlir folding code does. This change enables folding

[clang] [CIR] Fix unary op folding (PR #132269)

2025-03-20 Thread Andy Kaylor via cfe-commits
andykaylor wrote: @mmha This fixes the problem you noticed earlier. https://github.com/llvm/llvm-project/pull/132269 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits