diff options
author | Sam Tebbs <samuel.tebbs@arm.com> | 2025-10-01 16:01:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-10-01 16:01:54 +0100 |
commit | 664b227089a2d3a72b15018018c5e8e4e639f944 (patch) | |
tree | 34c11f005b0502f89529ad864928b4cb160f24aa /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | edb80a8d7fb2e1e29a4cb792148b4ffd441eb114 (diff) | |
download | llvm-664b227089a2d3a72b15018018c5e8e4e639f944.zip llvm-664b227089a2d3a72b15018018c5e8e4e639f944.tar.gz llvm-664b227089a2d3a72b15018018c5e8e4e639f944.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions