Commit b481512
committed
[SVE] Move reg+reg gather/scatter addressing optimisations from lowering into DAG combine.
This is essentially a refactoring patch but allows more cases to
be caught, hence the output changes to some tests.
Differential Revision: https://reviews.llvm.org/D1229941 parent f927be0 commit b481512
File tree
4 files changed
+56
-113
lines changed- llvm
- lib/Target/AArch64
- test/CodeGen/AArch64
4 files changed
+56
-113
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4651 | 4651 | | |
4652 | 4652 | | |
4653 | 4653 | | |
4654 | | - | |
4655 | | - | |
4656 | | - | |
4657 | | - | |
4658 | | - | |
4659 | | - | |
| 4654 | + | |
| 4655 | + | |
| 4656 | + | |
4660 | 4657 | | |
4661 | 4658 | | |
4662 | 4659 | | |
4663 | 4660 | | |
4664 | 4661 | | |
4665 | 4662 | | |
4666 | | - | |
| 4663 | + | |
| 4664 | + | |
4667 | 4665 | | |
4668 | 4666 | | |
4669 | | - | |
4670 | | - | |
4671 | | - | |
4672 | | - | |
4673 | | - | |
4674 | | - | |
4675 | | - | |
4676 | | - | |
4677 | | - | |
4678 | | - | |
4679 | | - | |
4680 | | - | |
4681 | | - | |
4682 | | - | |
4683 | | - | |
4684 | | - | |
4685 | | - | |
4686 | | - | |
4687 | | - | |
4688 | | - | |
4689 | | - | |
4690 | | - | |
4691 | | - | |
4692 | | - | |
4693 | | - | |
4694 | | - | |
4695 | | - | |
4696 | 4667 | | |
4697 | 4668 | | |
4698 | | - | |
4699 | 4669 | | |
4700 | | - | |
4701 | | - | |
4702 | | - | |
4703 | | - | |
| 4670 | + | |
4704 | 4671 | | |
4705 | | - | |
4706 | 4672 | | |
4707 | 4673 | | |
4708 | | - | |
4709 | | - | |
4710 | | - | |
| 4674 | + | |
| 4675 | + | |
| 4676 | + | |
4711 | 4677 | | |
4712 | 4678 | | |
4713 | 4679 | | |
| |||
17136 | 17102 | | |
17137 | 17103 | | |
17138 | 17104 | | |
| 17105 | + | |
| 17106 | + | |
| 17107 | + | |
| 17108 | + | |
| 17109 | + | |
| 17110 | + | |
17139 | 17111 | | |
17140 | 17112 | | |
17141 | 17113 | | |
17142 | 17114 | | |
17143 | | - | |
17144 | | - | |
17145 | | - | |
17146 | | - | |
17147 | | - | |
17148 | | - | |
17149 | | - | |
| 17115 | + | |
17150 | 17116 | | |
17151 | 17117 | | |
17152 | 17118 | | |
17153 | 17119 | | |
17154 | | - | |
17155 | | - | |
| 17120 | + | |
| 17121 | + | |
17156 | 17122 | | |
17157 | 17123 | | |
17158 | 17124 | | |
17159 | | - | |
17160 | | - | |
17161 | | - | |
| 17125 | + | |
| 17126 | + | |
| 17127 | + | |
17162 | 17128 | | |
17163 | 17129 | | |
17164 | | - | |
| 17130 | + | |
17165 | 17131 | | |
17166 | 17132 | | |
17167 | 17133 | | |
17168 | 17134 | | |
17169 | 17135 | | |
17170 | 17136 | | |
17171 | | - | |
| 17137 | + | |
17172 | 17138 | | |
17173 | 17139 | | |
17174 | 17140 | | |
17175 | | - | |
| 17141 | + | |
17176 | 17142 | | |
17177 | 17143 | | |
17178 | 17144 | | |
| |||
17183 | 17149 | | |
17184 | 17150 | | |
17185 | 17151 | | |
17186 | | - | |
| 17152 | + | |
17187 | 17153 | | |
17188 | 17154 | | |
17189 | 17155 | | |
17190 | 17156 | | |
17191 | 17157 | | |
17192 | 17158 | | |
17193 | | - | |
17194 | 17159 | | |
17195 | 17160 | | |
17196 | 17161 | | |
| |||
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
1158 | | - | |
1159 | 1158 | | |
1160 | 1159 | | |
1161 | 1160 | | |
1162 | 1161 | | |
1163 | 1162 | | |
1164 | 1163 | | |
1165 | 1164 | | |
1166 | | - | |
1167 | 1165 | | |
1168 | | - | |
1169 | 1166 | | |
1170 | | - | |
| 1167 | + | |
1171 | 1168 | | |
1172 | 1169 | | |
1173 | 1170 | | |
| |||
1181 | 1178 | | |
1182 | 1179 | | |
1183 | 1180 | | |
1184 | | - | |
1185 | 1181 | | |
1186 | 1182 | | |
1187 | 1183 | | |
| |||
1190 | 1186 | | |
1191 | 1187 | | |
1192 | 1188 | | |
1193 | | - | |
1194 | 1189 | | |
1195 | | - | |
| 1190 | + | |
1196 | 1191 | | |
1197 | 1192 | | |
1198 | 1193 | | |
| |||
Lines changed: 2 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1051 | 1051 | | |
1052 | 1052 | | |
1053 | 1053 | | |
1054 | | - | |
1055 | 1054 | | |
1056 | 1055 | | |
1057 | 1056 | | |
1058 | 1057 | | |
1059 | 1058 | | |
1060 | 1059 | | |
1061 | 1060 | | |
1062 | | - | |
1063 | 1061 | | |
1064 | | - | |
1065 | 1062 | | |
1066 | 1063 | | |
1067 | | - | |
| 1064 | + | |
1068 | 1065 | | |
1069 | 1066 | | |
1070 | 1067 | | |
| |||
1075 | 1072 | | |
1076 | 1073 | | |
1077 | 1074 | | |
1078 | | - | |
1079 | 1075 | | |
1080 | 1076 | | |
1081 | 1077 | | |
| |||
1084 | 1080 | | |
1085 | 1081 | | |
1086 | 1082 | | |
1087 | | - | |
1088 | 1083 | | |
1089 | 1084 | | |
1090 | | - | |
| 1085 | + | |
1091 | 1086 | | |
1092 | 1087 | | |
1093 | 1088 | | |
| |||
Lines changed: 27 additions & 39 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
| 113 | + | |
119 | 114 | | |
120 | | - | |
121 | | - | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
| |||
140 | 138 | | |
141 | 139 | | |
142 | 140 | | |
143 | | - | |
| 141 | + | |
144 | 142 | | |
145 | 143 | | |
146 | 144 | | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | 145 | | |
| 146 | + | |
154 | 147 | | |
155 | | - | |
156 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
157 | 153 | | |
158 | 154 | | |
159 | 155 | | |
| |||
174 | 170 | | |
175 | 171 | | |
176 | 172 | | |
177 | | - | |
| 173 | + | |
178 | 174 | | |
179 | | - | |
| 175 | + | |
180 | 176 | | |
181 | 177 | | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
| 178 | + | |
188 | 179 | | |
189 | | - | |
190 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
191 | 185 | | |
192 | 186 | | |
193 | 187 | | |
| |||
346 | 340 | | |
347 | 341 | | |
348 | 342 | | |
349 | | - | |
350 | | - | |
351 | | - | |
| 343 | + | |
352 | 344 | | |
353 | 345 | | |
354 | 346 | | |
| |||
362 | 354 | | |
363 | 355 | | |
364 | 356 | | |
365 | | - | |
366 | | - | |
| 357 | + | |
367 | 358 | | |
368 | 359 | | |
369 | 360 | | |
| |||
427 | 418 | | |
428 | 419 | | |
429 | 420 | | |
430 | | - | |
431 | | - | |
432 | | - | |
| 421 | + | |
433 | 422 | | |
434 | 423 | | |
435 | 424 | | |
| |||
443 | 432 | | |
444 | 433 | | |
445 | 434 | | |
446 | | - | |
447 | | - | |
| 435 | + | |
448 | 436 | | |
449 | 437 | | |
450 | 438 | | |
| |||
0 commit comments