[llvm] IVDesc: strip redundant arg in getOpcode call (NFC) (PR #118476)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 05:51:04 PST 2024


================
@@ -1063,7 +1063,7 @@ unsigned RecurrenceDescriptor::getOpcode(RecurKind Kind) {
 SmallVector<Instruction *, 4>
 RecurrenceDescriptor::getReductionOpChain(PHINode *Phi, Loop *L) const {
   SmallVector<Instruction *, 4> ReductionOperations;
-  unsigned RedOp = getOpcode(Kind);
+  unsigned RedOp = getOpcode();
----------------
fhahn wrote:

Are there any users remaining that take kind? If not can it be removed?

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


More information about the llvm-commits mailing list