Commit 4d2256a
[SLP]Fix PR57447: Assertion `!getTreeEntry(V) && "Scalar already in tree!"' failed.
The pointer operands for the ScatterVectorize node may contain
non-instruction values and they are not checked for "already being
vectorized". Need to check that such pointers are already vectorized and
gather them instead of trying to build vectorize node to avoid compiler
crash.
Differential Revision: https://reviews.llvm.org/D132949
(cherry picked from commit ec06df9)1 parent 761d71a commit 4d2256a
File tree
2 files changed
+65
-10
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/X86
2 files changed
+65
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4696 | 4696 | | |
4697 | 4697 | | |
4698 | 4698 | | |
| 4699 | + | |
| 4700 | + | |
| 4701 | + | |
4699 | 4702 | | |
4700 | 4703 | | |
4701 | | - | |
4702 | | - | |
| 4704 | + | |
4703 | 4705 | | |
4704 | 4706 | | |
4705 | 4707 | | |
| |||
4760 | 4762 | | |
4761 | 4763 | | |
4762 | 4764 | | |
4763 | | - | |
4764 | | - | |
| 4765 | + | |
4765 | 4766 | | |
4766 | | - | |
| 4767 | + | |
4767 | 4768 | | |
4768 | 4769 | | |
4769 | 4770 | | |
| |||
5213 | 5214 | | |
5214 | 5215 | | |
5215 | 5216 | | |
5216 | | - | |
5217 | | - | |
5218 | | - | |
5219 | 5217 | | |
5220 | 5218 | | |
5221 | 5219 | | |
5222 | 5220 | | |
5223 | 5221 | | |
5224 | 5222 | | |
5225 | 5223 | | |
5226 | | - | |
| 5224 | + | |
5227 | 5225 | | |
5228 | | - | |
| 5226 | + | |
5229 | 5227 | | |
5230 | 5228 | | |
5231 | 5229 | | |
| |||
Lines changed: 57 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 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
0 commit comments