Skip to content

Conversation

@david-arm
Copy link
Contributor

Fixes issue caused by 1930524

Unused variable UsesMask in LoopVectorize.cpp

Fixes issue caused by 1930524

Unused variable UsesMask in LoopVectorize.cpp
@llvmbot
Copy link
Member

llvmbot commented Feb 7, 2025

@llvm/pr-subscribers-llvm-transforms

@llvm/pr-subscribers-vectorizers

Author: David Sherwood (david-arm)

Changes

Fixes issue caused by 1930524

Unused variable UsesMask in LoopVectorize.cpp


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

1 Files Affected:

  • (modified) llvm/lib/Transforms/Vectorize/LoopVectorize.cpp (-2)
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 740e163d52f52c..6ad44259ccdf6e 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -6285,7 +6285,6 @@ void LoopVectorizationCostModel::setVectorizedCallDecision(ElementCount VF) {
 
       // Find the cost of vectorizing the call, if we can find a suitable
       // vector variant of the function.
-      bool UsesMask = false;
       VFInfo FuncInfo;
       Function *VecFunc = nullptr;
       // Search through any available variants for one we can use at this VF.
@@ -6337,7 +6336,6 @@ void LoopVectorizationCostModel::setVectorizedCallDecision(ElementCount VF) {
             break;
           }
           case VFParamKind::GlobalPredicate:
-            UsesMask = true;
             break;
           default:
             ParamsOk = false;

@david-arm david-arm merged commit 3872e55 into llvm:main Feb 7, 2025
8 of 10 checks passed
swift-ci pushed a commit to swiftlang/llvm-project that referenced this pull request Feb 7, 2025
Fixes issue caused by 1930524

Unused variable UsesMask in LoopVectorize.cpp

(cherry picked from commit 3872e55)
Icohedron pushed a commit to Icohedron/llvm-project that referenced this pull request Feb 11, 2025
Fixes issue caused by 1930524

Unused variable UsesMask in LoopVectorize.cpp
@david-arm david-arm deleted the fix_lv_build branch February 27, 2025 13:02
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.

2 participants