[llvm] [DAG] Fold (bitwiseop X, (add (not Y), Z)) -> (bitwiseop X, (not (sub Y, Z))). (PR #141476)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sat May 31 14:25:28 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) {
----------------
RKSimon wrote:
(style) if you can its preferred to avoid numbered variables (also means you can drop the `entry:` labels).
https://github.com/llvm/llvm-project/pull/141476
More information about the llvm-commits
mailing list