Commit 8a0bfe4
committed
[SLP]Fix PR87630: wrong result for externally used vector value.
Need to check that the externally used value can be represented with the
BitWidth before applying it, otherwise need to keep wider type.1 parent eeaaf33 commit 8a0bfe4
File tree
2 files changed
+14
-8
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/X86
2 files changed
+14
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14141 | 14141 | | |
14142 | 14142 | | |
14143 | 14143 | | |
| 14144 | + | |
| 14145 | + | |
| 14146 | + | |
| 14147 | + | |
| 14148 | + | |
| 14149 | + | |
| 14150 | + | |
| 14151 | + | |
| 14152 | + | |
| 14153 | + | |
14144 | 14154 | | |
14145 | 14155 | | |
14146 | 14156 | | |
| |||
Lines changed: 4 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 20 | + | |
| 21 | + | |
25 | 22 | | |
26 | | - | |
27 | | - | |
| 23 | + | |
28 | 24 | | |
29 | 25 | | |
30 | 26 | | |
| |||
0 commit comments