Skip to content

[ValueTracking] Remove unused variable in matchSimpleRecurrence (NFC). #144316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

rj-jesus
Copy link
Contributor

No description provided.

@llvmbot
Copy link
Member

llvmbot commented Jun 16, 2025

@llvm/pr-subscribers-llvm-analysis

Author: Ricardo Jesus (rj-jesus)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/144316.diff

1 Files Affected:

  • (modified) llvm/lib/Analysis/ValueTracking.cpp (-1)
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index d39efb2859747..9df667926faf0 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -9081,7 +9081,6 @@ bool llvm::matchSimpleRecurrence(const PHINode *P, BinaryOperator *&BO,
     auto *LU = dyn_cast<BinaryOperator>(L);
     if (!LU)
       continue;
-    unsigned Opcode = LU->getOpcode();
     Value *LL = LU->getOperand(0);
     Value *LR = LU->getOperand(1);
 

@rj-jesus rj-jesus merged commit f12dd8f into llvm:main Jun 16, 2025
7 of 9 checks passed
@rj-jesus rj-jesus deleted the rjj/valuetracking-remove-unused-variable branch June 16, 2025 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants