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

via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 16 01:46:39 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-analysis

Author: Ricardo Jesus (rj-jesus)

<details>
<summary>Changes</summary>



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


1 Files Affected:

- (modified) llvm/lib/Analysis/ValueTracking.cpp (-1) 


``````````diff
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);
 

``````````

</details>


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


More information about the llvm-commits mailing list