[llvm] fold mov dec/inc to lea +- 1 (PR #185194)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 8 08:15:26 PDT 2026


================
@@ -0,0 +1,101 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
+; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx2,+slow-3ops-lea | FileCheck %s
+; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu -mattr=+avx2,-slow-3ops-lea | FileCheck %s
+
+define i64 @mov_dec(<32 x i8> %x) local_unnamed_addr {
----------------
RKSimon wrote:

local_unnamed_addr should be unnecessary from these tests

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


More information about the llvm-commits mailing list