Commit 55fa72f
committed
[LV] Fix stale entry in MinBWs in tryToWiden
tryToWiden attempts to replace an Instruction with a Constant from SCEV,
but forgets to erase the Instruction from the MinBWs map, leading to a
crash in VPlanTransforms::truncateToMinimalBitwidths. Fix this by
erasing the stale entry.
Fixes #125278.1 parent f63389f commit 55fa72f
File tree
2 files changed
+28
-8
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize
2 files changed
+28
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1047 | 1047 | | |
1048 | 1048 | | |
1049 | 1049 | | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
| 1050 | + | |
1053 | 1051 | | |
1054 | 1052 | | |
1055 | 1053 | | |
| |||
8868 | 8866 | | |
8869 | 8867 | | |
8870 | 8868 | | |
8871 | | - | |
8872 | | - | |
| 8869 | + | |
| 8870 | + | |
8873 | 8871 | | |
8874 | | - | |
| 8872 | + | |
8875 | 8873 | | |
8876 | 8874 | | |
| 8875 | + | |
| 8876 | + | |
| 8877 | + | |
8877 | 8878 | | |
8878 | 8879 | | |
8879 | 8880 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
5 | 24 | | |
6 | 25 | | |
7 | 26 | | |
| |||
0 commit comments