Commit 9a3aedb
committed
[SLP]Do not try to schedule bundle with non-schedulable parent with commutable instructions
Commutable instruction can be reordering during tree building, and if
the parent node is not scheduled, its ScheduleData elements are
considered independent and compiler do not looks for reordered operands.
Need to cancel scheduling of copyables in this case.1 parent 54c304c commit 9a3aedb
File tree
2 files changed
+59
-1
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/X86
2 files changed
+59
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20853 | 20853 | | |
20854 | 20854 | | |
20855 | 20855 | | |
20856 | | - | |
| 20856 | + | |
| 20857 | + | |
| 20858 | + | |
| 20859 | + | |
| 20860 | + | |
| 20861 | + | |
| 20862 | + | |
| 20863 | + | |
| 20864 | + | |
| 20865 | + | |
| 20866 | + | |
| 20867 | + | |
| 20868 | + | |
| 20869 | + | |
| 20870 | + | |
| 20871 | + | |
| 20872 | + | |
20857 | 20873 | | |
20858 | 20874 | | |
20859 | 20875 | | |
| |||
Lines changed: 42 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 | + | |
0 commit comments