Commit f381cd0
committed
[SLP]Fix PR107036: Check if the type of the user is sizable before requesting its size.
Only some instructions should be considered as potentially reducing the
size of the operands types, not all instructions should be considered.
Fixes #1070361 parent 70a19ad commit f381cd0
2 files changed
Lines changed: 36 additions & 4 deletions
File tree
- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/X86
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16055 | 16055 | | |
16056 | 16056 | | |
16057 | 16057 | | |
| 16058 | + | |
| 16059 | + | |
| 16060 | + | |
| 16061 | + | |
| 16062 | + | |
16058 | 16063 | | |
16059 | 16064 | | |
16060 | 16065 | | |
16061 | 16066 | | |
16062 | 16067 | | |
16063 | | - | |
16064 | | - | |
16065 | | - | |
16066 | | - | |
16067 | 16068 | | |
16068 | 16069 | | |
16069 | 16070 | | |
| |||
Lines changed: 31 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
0 commit comments