[llvm] [GIsel] import `(not (add X, -1)) -> (neg X)` to GlobalISel (PR #181640)

Luisa Cicolini via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 19 10:56:41 PST 2026


================
@@ -494,7 +494,7 @@ body: |
     ; CHECK-NEXT: %n:_(s64) = COPY $x2
     ; CHECK-NEXT: %z:_(s64) = COPY $x3
     ; CHECK-NEXT: %zero:_(s64) = G_CONSTANT i64 0
-    ; CHECK-NEXT: %neg_y:_(s64) = G_SUB %zero, %y
+    ; CHECK-NEXT: %neg_y:_(s64) = G_SUB %zegit ro, %y
----------------
luisacicolini wrote:

addrtessed, thanks!

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


More information about the llvm-commits mailing list