Commit dc8175b
committed
[VPlan] Don't form predicated partial reductions.
Follow-up to llvm#166136.
As far as I can tell, currently we cannot lower partial reductions fed
by a select efficiently (https://llvm.godbolt.org/z/ETas69vna), so
skipping them for partial reduction cost-computations seems inaccurate.
Unless I am missing something, we can for now simply avoid forming
conditional partial reductions, as they won't be profitable and using
regular reductions exposes more parallelism.1 parent bbf62dc commit dc8175b
File tree
7 files changed
+724
-414
lines changed- llvm
- lib/Transforms/Vectorize
- test/Transforms/LoopVectorize/AArch64
7 files changed
+724
-414
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8115 | 8115 | | |
8116 | 8116 | | |
8117 | 8117 | | |
| 8118 | + | |
| 8119 | + | |
| 8120 | + | |
8118 | 8121 | | |
8119 | 8122 | | |
8120 | 8123 | | |
| |||
8247 | 8250 | | |
8248 | 8251 | | |
8249 | 8252 | | |
8250 | | - | |
8251 | | - | |
8252 | | - | |
8253 | | - | |
8254 | | - | |
| 8253 | + | |
| 8254 | + | |
| 8255 | + | |
| 8256 | + | |
| 8257 | + | |
8255 | 8258 | | |
8256 | 8259 | | |
8257 | 8260 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
311 | 311 | | |
312 | 312 | | |
313 | 313 | | |
314 | | - | |
315 | | - | |
316 | | - | |
317 | | - | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
| 314 | + | |
| 315 | + | |
327 | 316 | | |
328 | 317 | | |
329 | 318 | | |
330 | 319 | | |
331 | 320 | | |
332 | | - | |
333 | | - | |
334 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
335 | 324 | | |
336 | 325 | | |
337 | 326 | | |
| |||
389 | 378 | | |
390 | 379 | | |
391 | 380 | | |
392 | | - | |
| 381 | + | |
393 | 382 | | |
394 | 383 | | |
395 | | - | |
396 | | - | |
397 | | - | |
398 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
399 | 387 | | |
400 | 388 | | |
401 | 389 | | |
| |||
410 | 398 | | |
411 | 399 | | |
412 | 400 | | |
413 | | - | |
414 | | - | |
415 | | - | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | 401 | | |
420 | 402 | | |
421 | 403 | | |
| |||
0 commit comments