[llvm] [VPlan] Fix typo in assertion. NFC (PR #137009)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 23 09:11:09 PDT 2025
https://github.com/lukel97 created https://github.com/llvm/llvm-project/pull/137009
None
>From 6d8209a24f260a315319a3d7183b884836ff8775 Mon Sep 17 00:00:00 2001
From: Luke Lau <luke at igalia.com>
Date: Thu, 24 Apr 2025 00:09:31 +0800
Subject: [PATCH] [VPlan] Fix typo in assertion. NFC
---
llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h b/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
index f38eb3cc8d43f..0d2d8315240cf 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
+++ b/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h
@@ -221,8 +221,9 @@ struct Recipe_match {
if ((!matchRecipeAndOpcode<RecipeTys>(R) && ...))
return false;
- assert(R->getNumOperands() == std::tuple_size<Ops_t>::value &&
- "recipe with matched opcode the expected number of operands");
+ assert(
+ R->getNumOperands() == std::tuple_size<Ops_t>::value &&
+ "recipe with matched opcode without the expected number of operands");
auto IdxSeq = std::make_index_sequence<std::tuple_size<Ops_t>::value>();
if (all_of_tuple_elements(IdxSeq, [R](auto Op, unsigned Idx) {
More information about the llvm-commits
mailing list