Commit 055e4ff
committed
[VPlan] Don't narrow op multiple times in narrowInterleaveGroups.
Track which ops already have been narrowed, to avoid narrowing the same
operation multiple times. Repeated narrowing will lead to incorrect
results, because we could first narrow from an interleave group -> wide
load, and then narrow the wide load > single-scalar load.
Fixes thttps://github.com//issues/156190.1 parent 9fdf2c7 commit 055e4ff
File tree
2 files changed
+8
-6
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize/AArch64
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4017 | 4017 | | |
4018 | 4018 | | |
4019 | 4019 | | |
4020 | | - | |
| 4020 | + | |
| 4021 | + | |
4021 | 4022 | | |
4022 | | - | |
| 4023 | + | |
4023 | 4024 | | |
4024 | 4025 | | |
4025 | 4026 | | |
| |||
4029 | 4030 | | |
4030 | 4031 | | |
4031 | 4032 | | |
| 4033 | + | |
4032 | 4034 | | |
4033 | 4035 | | |
4034 | 4036 | | |
4035 | 4037 | | |
4036 | 4038 | | |
4037 | 4039 | | |
4038 | 4040 | | |
| 4041 | + | |
4039 | 4042 | | |
4040 | 4043 | | |
4041 | 4044 | | |
| |||
4049 | 4052 | | |
4050 | 4053 | | |
4051 | 4054 | | |
| 4055 | + | |
4052 | 4056 | | |
4053 | 4057 | | |
4054 | 4058 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1169 | 1169 | | |
1170 | 1170 | | |
1171 | 1171 | | |
1172 | | - | |
| 1172 | + | |
1173 | 1173 | | |
1174 | 1174 | | |
1175 | 1175 | | |
| |||
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | | - | |
1185 | | - | |
1186 | | - | |
| 1184 | + | |
1187 | 1185 | | |
1188 | 1186 | | |
1189 | 1187 | | |
| |||
0 commit comments