[llvm] [LV] Add VPWiden{Load|Store}EVLRecipe into emitInvalidCostRemarks(). (PR #119708)
Elvis Wang via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 12 06:24:14 PST 2024
https://github.com/ElvisWang123 created https://github.com/llvm/llvm-project/pull/119708
When the cost of `VPWiden{Load|Store}EVLRecipe` is invalid, it will fell out of the type switch.
>From 9f282d5a84d1dbabe3597778c958cb16d6a7e707 Mon Sep 17 00:00:00 2001
From: Elvis Wang <elvis.wang at sifive.com>
Date: Thu, 12 Dec 2024 06:19:46 -0800
Subject: [PATCH] [LV] Add VPWiden{Load|Store}EVLRecipe into
emitInvalidCostRemarks().
When the cost of VPWiden{Load|Store}EVLRecipe is invlid, it will fell out of the
type switch.
---
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index de164ee434d647..c62eb391e7c4da 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -4496,9 +4496,9 @@ void LoopVectorizationPlanner::emitInvalidCostRemarks(
[](const auto *R) { return Instruction::PHI; })
.Case<VPWidenSelectRecipe>(
[](const auto *R) { return Instruction::Select; })
- .Case<VPWidenStoreRecipe>(
+ .Case<VPWidenStoreRecipe, VPWidenStoreEVLRecipe>(
[](const auto *R) { return Instruction::Store; })
- .Case<VPWidenLoadRecipe>(
+ .Case<VPWidenLoadRecipe, VPWidenLoadEVLRecipe>(
[](const auto *R) { return Instruction::Load; })
.Case<VPWidenCallRecipe, VPWidenIntrinsicRecipe>(
[](const auto *R) { return Instruction::Call; })
More information about the llvm-commits
mailing list