[all-commits] [llvm/llvm-project] 664b22: [LV] Keep duplicate recipes in VPExpressionRecipe ...
Sam Tebbs via All-commits
all-commits at lists.llvm.org
Wed Oct 1 08:02:16 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 664b227089a2d3a72b15018018c5e8e4e639f944
https://github.com/llvm/llvm-project/commit/664b227089a2d3a72b15018018c5e8e4e639f944
Author: Sam Tebbs <samuel.tebbs at arm.com>
Date: 2025-10-01 (Wed, 01 Oct 2025)
Changed paths:
M llvm/lib/Transforms/Vectorize/VPlan.h
M llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
M llvm/test/Transforms/LoopVectorize/reduction-inloop.ll
M llvm/test/Transforms/LoopVectorize/vplan-printing-reductions.ll
Log Message:
-----------
[LV] Keep duplicate recipes in VPExpressionRecipe (#156976)
The VPExpressionRecipe class uses a set to store its bundled recipes. If
repeated recipes are bundled then the duplicates will be lost, causing
the following recipes to not be at the expected place in the set.
When printing a reduce.add(mul(ext, ext)) bundle, for example, if the
extends are the same then the 3rd element of the set will be the
reduction, rather than the expected mul, causing a cast error. With this
change, the recipes are at the expected index in the set.
Fixes #156464
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list