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

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 8 03:45:49 PDT 2026


================
@@ -0,0 +1,100 @@
+; 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 | FileCheck %s
----------------
RKSimon wrote:

ensure you test -mattr=+slow-3ops-lea / -mattr=-slow-3ops-lea

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


More information about the llvm-commits mailing list