[llvm] [NFC] Fix unused variable warning in release builds (PR #174079)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 31 02:00:59 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-vectorizers
Author: Mel Chen (Mel-Chen)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/174079.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Vectorize/LoopVectorize.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index f90937ecedad9..d002dc89498a3 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -7253,7 +7253,7 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() {
// * EVL-based VPlans with gather/scatters (the VPlan-based cost model uses
// vp_scatter/vp_gather).
// The legacy cost model doesn't properly model costs for such loops.
- bool UsesEVLGatherScatter =
+ [[maybe_unused]] bool UsesEVLGatherScatter =
any_of(VPBlockUtils::blocksOnly<VPBasicBlock>(vp_depth_first_shallow(
BestPlan.getVectorLoopRegion()->getEntry())),
[](VPBasicBlock *VPBB) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/174079
More information about the llvm-commits
mailing list