Commit 7d56590
committed
[SLP]Do not create copyable node, if parent node is non-schedulable and has a use in binop.
If the parent node is non-schedulable (only externally used instructions), and at least one instruction has multiple uses and used in the binop, such copyable node should be created. Otherwise, it may contain wrong def-use chain model, which cannot be effective detected.
Fixes llvm#1660351 parent bf5332c commit 7d56590
File tree
2 files changed
+61
-0
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/X86
2 files changed
+61
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20975 | 20975 | | |
20976 | 20976 | | |
20977 | 20977 | | |
| 20978 | + | |
| 20979 | + | |
| 20980 | + | |
| 20981 | + | |
| 20982 | + | |
| 20983 | + | |
| 20984 | + | |
| 20985 | + | |
| 20986 | + | |
| 20987 | + | |
| 20988 | + | |
| 20989 | + | |
| 20990 | + | |
| 20991 | + | |
| 20992 | + | |
| 20993 | + | |
| 20994 | + | |
| 20995 | + | |
| 20996 | + | |
| 20997 | + | |
| 20998 | + | |
20978 | 20999 | | |
20979 | 21000 | | |
20980 | 21001 | | |
| |||
Lines changed: 40 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 | + | |
0 commit comments