[llvm] [DAG] Fold (bitwiseop X, (add (not Y), Z)) -> (bitwiseop X, (not (sub Y, Z))). (PR #141476)

Xu Zhang via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 2 06:03:56 PDT 2025


================
@@ -0,0 +1,316 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -mtriple=aarch64-linux | FileCheck %s
+
+define i8 @andnot_add_with_neg_i8(i8 %0, i8 %1) {
----------------
simonzgx wrote:

will fix

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


More information about the llvm-commits mailing list