[llvm] ce192b8 - [Vectorize] Fix a warning
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 6 09:12:11 PDT 2024
Author: Kazu Hirata
Date: 2024-09-06T09:12:06-07:00
New Revision: ce192b87b2a09ee27e4077763db0486921a485c0
URL: https://github.com/llvm/llvm-project/commit/ce192b87b2a09ee27e4077763db0486921a485c0
DIFF: https://github.com/llvm/llvm-project/commit/ce192b87b2a09ee27e4077763db0486921a485c0.diff
LOG: [Vectorize] Fix a warning
This patch fixes:
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp:1278:12: error:
unused variable 'Op0' [-Werror,-Wunused-variable]
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
index ea49d29e28d831..e94e7561f3c2da 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -1275,9 +1275,8 @@ void VPWidenEVLRecipe::execute(VPTransformState &State) {
State.setDebugLocFrom(getDebugLoc());
assert(State.UF == 1 && "Expected only UF == 1 when vectorizing with "
"explicit vector length.");
- VPValue *Op0 = getOperand(0);
- assert(State.get(Op0, 0)->getType()->isVectorTy() &&
+ assert(State.get(getOperand(0), 0)->getType()->isVectorTy() &&
"VPWidenEVLRecipe should not be used for scalars");
VPValue *EVL = getEVL();
More information about the llvm-commits
mailing list