[llvm] adeb6ee - [LV][NFC] Fix unused variable warning (#228383)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 2 04:13:15 PDT 2026


Author: David Sherwood
Date: 2026-10-02T11:13:07Z
New Revision: adeb6eeb60e65feb4752fee68f02c07a076cbf64

URL: https://github.com/llvm/llvm-project/commit/adeb6eeb60e65feb4752fee68f02c07a076cbf64
DIFF: https://github.com/llvm/llvm-project/commit/adeb6eeb60e65feb4752fee68f02c07a076cbf64.diff

LOG: [LV][NFC] Fix unused variable warning (#228383)

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 69e367e62129d..b3db2f8de7432 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4701,7 +4701,7 @@ void LoopVectorizationCostModel::setCostBasedWideningDecision(ElementCount VF) {
           dbgs() << "LV: Memory widening: updating decision for load user "
                  << *UI << '\n');
       setWideningDecision(
-          cast<Instruction>(U), VF, CM_Scalarize,
+          UI, VF, CM_Scalarize,
           getMemInstScalarizationCost(cast<Instruction>(U), VF));
     }
   };


        


More information about the llvm-commits mailing list