Commit b3e3195
committed
[AArch64] Use INDEX for constant Neon step vectors
When compiling for an SVE target we can use INDEX to generate constant
fixed-length step vectors.
The logic for this was already in `LowerBUILD_VECTOR`, though it was
hidden under `!Subtarget->isNeonAvailable()`. This patch refactors this
to enable the corresponding code path unconditionally for constant step
vectors (as long as we can use SVE for them).1 parent 4614b80 commit b3e3195
File tree
2 files changed
+11
-13
lines changed- llvm
- lib/Target/AArch64
- test/CodeGen/AArch64
2 files changed
+11
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14512 | 14512 | | |
14513 | 14513 | | |
14514 | 14514 | | |
14515 | | - | |
| 14515 | + | |
| 14516 | + | |
| 14517 | + | |
14516 | 14518 | | |
14517 | 14519 | | |
14518 | 14520 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
437 | 436 | | |
438 | 437 | | |
439 | 438 | | |
| |||
444 | 443 | | |
445 | 444 | | |
446 | 445 | | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
451 | 449 | | |
452 | 450 | | |
453 | 451 | | |
| |||
459 | 457 | | |
460 | 458 | | |
461 | 459 | | |
462 | | - | |
| 460 | + | |
463 | 461 | | |
464 | | - | |
465 | 462 | | |
466 | 463 | | |
467 | 464 | | |
| |||
478 | 475 | | |
479 | 476 | | |
480 | 477 | | |
481 | | - | |
482 | | - | |
| 478 | + | |
483 | 479 | | |
484 | 480 | | |
485 | 481 | | |
| |||
0 commit comments