[llvm] [IVDesc] Add `[[maybe_unused]]` to `NumNonPHIUsers` (NFC) (PR #180729)
Benjamin Maxwell via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 04:07:50 PST 2026
https://github.com/MacDue created https://github.com/llvm/llvm-project/pull/180729
None
>From 152eec3c496e85f4514f12c7206b3724195ca83a Mon Sep 17 00:00:00 2001
From: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: Tue, 10 Feb 2026 12:06:17 +0000
Subject: [PATCH] [IVDesc] Add `[[maybe_unused]]` to `NumNonPHIUsers` (NFC)
---
llvm/lib/Analysis/IVDescriptors.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/llvm/lib/Analysis/IVDescriptors.cpp b/llvm/lib/Analysis/IVDescriptors.cpp
index e79b609cdad85..efa4485448a12 100644
--- a/llvm/lib/Analysis/IVDescriptors.cpp
+++ b/llvm/lib/Analysis/IVDescriptors.cpp
@@ -330,7 +330,7 @@ bool RecurrenceDescriptor::AddReductionVar(
// "find-last-like" phi (see isFindLastLikePhi). We currently only support
// find-last reduction chains with a single "find-last-like" phi and do not
// allow any other operations.
- unsigned NumNonPHIUsers = 0;
+ [[maybe_unused]] unsigned NumNonPHIUsers = 0;
bool FoundFindLastLikePhi = false;
// Data used for determining if the recurrence has been type-promoted.
More information about the llvm-commits
mailing list