[llvm] a4819bd - [VPlan] Restore case accidentially dropped in 34cdd67c85.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 20:37:18 PDT 2024
Author: Florian Hahn
Date: 2024-10-21T20:33:58-07:00
New Revision: a4819bd46d8baebc3aaa8b38f78065de33593199
URL: https://github.com/llvm/llvm-project/commit/a4819bd46d8baebc3aaa8b38f78065de33593199
DIFF: https://github.com/llvm/llvm-project/commit/a4819bd46d8baebc3aaa8b38f78065de33593199.diff
LOG: [VPlan] Restore case accidentially dropped in 34cdd67c85.
34cdd67c85 accidentially dropped the case for VPWidenIntrinsicSC. Add it
back again. Thanks @Mel-Chen for spotting this.
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 945874fd2c1ebb..3038f982fc814b 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
@@ -81,6 +81,7 @@ bool VPRecipeBase::mayWriteToMemory() const {
return !cast<VPWidenCallRecipe>(this)
->getCalledScalarFunction()
->onlyReadsMemory();
+ case VPWidenIntrinsicSC:
return cast<VPWidenIntrinsicRecipe>(this)->mayWriteToMemory();
case VPBranchOnMaskSC:
case VPScalarIVStepsSC:
More information about the llvm-commits
mailing list