[llvm] 2889098 - [IVDesc] Add `[[maybe_unused]]` to `NumNonPHIUsers` (NFC) (#180729)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 10 04:08:05 PST 2026
Author: Benjamin Maxwell
Date: 2026-02-10T12:08:00Z
New Revision: 288909883c7a5dadcda600389d5fee02078d1acb
URL: https://github.com/llvm/llvm-project/commit/288909883c7a5dadcda600389d5fee02078d1acb
DIFF: https://github.com/llvm/llvm-project/commit/288909883c7a5dadcda600389d5fee02078d1acb.diff
LOG: [IVDesc] Add `[[maybe_unused]]` to `NumNonPHIUsers` (NFC) (#180729)
Added:
Modified:
llvm/lib/Analysis/IVDescriptors.cpp
Removed:
################################################################################
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