Commit 3ad5765
authored
[LV] Check all users of partial reductions in chain have same scale. (#162822)
Check that all partial reductions in a chain are only used by other
partial reductions with the same scale factor. Otherwise we end up
creating users of scaled reductions where the types of the other
operands don't match.
A similar issue was addressed in
#158603, but misses the chained
cases.
Fixes #162530.
PR: #1628221 parent c940bfd commit 3ad5765
File tree
2 files changed
+50
-8
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize/AArch64
2 files changed
+50
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7933 | 7933 | | |
7934 | 7934 | | |
7935 | 7935 | | |
| 7936 | + | |
| 7937 | + | |
| 7938 | + | |
| 7939 | + | |
| 7940 | + | |
| 7941 | + | |
| 7942 | + | |
| 7943 | + | |
| 7944 | + | |
| 7945 | + | |
| 7946 | + | |
| 7947 | + | |
| 7948 | + | |
| 7949 | + | |
| 7950 | + | |
| 7951 | + | |
| 7952 | + | |
| 7953 | + | |
| 7954 | + | |
| 7955 | + | |
7936 | 7956 | | |
7937 | 7957 | | |
7938 | 7958 | | |
| |||
8116 | 8136 | | |
8117 | 8137 | | |
8118 | 8138 | | |
8119 | | - | |
8120 | | - | |
8121 | | - | |
8122 | | - | |
8123 | | - | |
| 8139 | + | |
| 8140 | + | |
8124 | 8141 | | |
8125 | 8142 | | |
8126 | 8143 | | |
| |||
8154 | 8171 | | |
8155 | 8172 | | |
8156 | 8173 | | |
8157 | | - | |
8158 | | - | |
8159 | | - | |
| 8174 | + | |
| 8175 | + | |
| 8176 | + | |
8160 | 8177 | | |
8161 | 8178 | | |
8162 | 8179 | | |
| |||
Lines changed: 25 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
0 commit comments