diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 740e163d52f52..6ad44259ccdf6 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;