Commit 75ef0be
committed
[SLP]Be careful when trying match/vectorize copyable nodes with external uses only
Need to be careful when trying to match and/or build copyable node with
the instructions, used outside the block only and if their operands
immediately precede such instructions. In this case insertion point
might be the same and it may cause broken def-use chain.
Fixes llvm#1673661 parent 7cd9d3d commit 75ef0be
File tree
2 files changed
+90
-1
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/SLPVectorizer/X86
2 files changed
+90
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16844 | 16844 | | |
16845 | 16845 | | |
16846 | 16846 | | |
| 16847 | + | |
| 16848 | + | |
| 16849 | + | |
| 16850 | + | |
| 16851 | + | |
| 16852 | + | |
| 16853 | + | |
| 16854 | + | |
| 16855 | + | |
| 16856 | + | |
16847 | 16857 | | |
16848 | 16858 | | |
16849 | 16859 | | |
| |||
16926 | 16936 | | |
16927 | 16937 | | |
16928 | 16938 | | |
| 16939 | + | |
| 16940 | + | |
| 16941 | + | |
| 16942 | + | |
| 16943 | + | |
16929 | 16944 | | |
16930 | 16945 | | |
16931 | 16946 | | |
| |||
16961 | 16976 | | |
16962 | 16977 | | |
16963 | 16978 | | |
16964 | | - | |
| 16979 | + | |
| 16980 | + | |
16965 | 16981 | | |
16966 | 16982 | | |
16967 | 16983 | | |
| |||
21003 | 21019 | | |
21004 | 21020 | | |
21005 | 21021 | | |
| 21022 | + | |
| 21023 | + | |
| 21024 | + | |
| 21025 | + | |
| 21026 | + | |
| 21027 | + | |
| 21028 | + | |
| 21029 | + | |
| 21030 | + | |
| 21031 | + | |
| 21032 | + | |
| 21033 | + | |
| 21034 | + | |
| 21035 | + | |
| 21036 | + | |
| 21037 | + | |
21006 | 21038 | | |
21007 | 21039 | | |
21008 | 21040 | | |
| |||
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