Commit 23ad559
committed
[SLP][REVEC] Ignore UserTreeIndex if it is empty.
Previously, the all_of check did not consider the case where the
TreeEntry is empty (i.e., when it is the first entry).1 parent e92f2ee commit 23ad559
File tree
2 files changed
+18
-3
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/X86
2 files changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6449 | 6449 | | |
6450 | 6450 | | |
6451 | 6451 | | |
6452 | | - | |
6453 | | - | |
6454 | | - | |
| 6452 | + | |
| 6453 | + | |
| 6454 | + | |
| 6455 | + | |
6455 | 6456 | | |
6456 | 6457 | | |
6457 | 6458 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
5 | 19 | | |
6 | 20 | | |
7 | 21 | | |
| |||
0 commit comments