Commit a3167b5
committed
[AArch64] Combine PTEST_FIRST(PTRUE, CONCAT(A, B)) -> PTEST_FIRST(PTRUE, A)
When input to a ptest_first is a vector concat and the mask is all
active, performPTestFirstCombine returns a ptest_first using the
first operand of the concat, looking through any reinterpret casts
added by getPTest.
This allows optimizePTestInstr to later remove the ptest when the
first operand is a flag setting instruction such as whilelo.1 parent cf50bbf commit a3167b5
File tree
2 files changed
+40
-20
lines changed- llvm
- lib/Target/AArch64
- test/CodeGen/AArch64
2 files changed
+40
-20
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20370 | 20370 | | |
20371 | 20371 | | |
20372 | 20372 | | |
20373 | | - | |
| 20373 | + | |
20374 | 20374 | | |
20375 | 20375 | | |
20376 | 20376 | | |
| |||
20495 | 20495 | | |
20496 | 20496 | | |
20497 | 20497 | | |
| 20498 | + | |
20498 | 20499 | | |
20499 | 20500 | | |
20500 | 20501 | | |
| |||
22535 | 22536 | | |
22536 | 22537 | | |
22537 | 22538 | | |
22538 | | - | |
| 22539 | + | |
22539 | 22540 | | |
22540 | 22541 | | |
22541 | 22542 | | |
| |||
22568 | 22569 | | |
22569 | 22570 | | |
22570 | 22571 | | |
| 22572 | + | |
| 22573 | + | |
22571 | 22574 | | |
22572 | 22575 | | |
22573 | 22576 | | |
| |||
27519 | 27522 | | |
27520 | 27523 | | |
27521 | 27524 | | |
| 27525 | + | |
| 27526 | + | |
| 27527 | + | |
| 27528 | + | |
| 27529 | + | |
| 27530 | + | |
| 27531 | + | |
| 27532 | + | |
| 27533 | + | |
| 27534 | + | |
| 27535 | + | |
| 27536 | + | |
| 27537 | + | |
| 27538 | + | |
| 27539 | + | |
| 27540 | + | |
| 27541 | + | |
| 27542 | + | |
| 27543 | + | |
| 27544 | + | |
| 27545 | + | |
| 27546 | + | |
| 27547 | + | |
| 27548 | + | |
| 27549 | + | |
| 27550 | + | |
| 27551 | + | |
| 27552 | + | |
| 27553 | + | |
| 27554 | + | |
| 27555 | + | |
27522 | 27556 | | |
27523 | 27557 | | |
27524 | 27558 | | |
| |||
27875 | 27909 | | |
27876 | 27910 | | |
27877 | 27911 | | |
| 27912 | + | |
| 27913 | + | |
27878 | 27914 | | |
27879 | 27915 | | |
27880 | 27916 | | |
| |||
Lines changed: 2 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | 330 | | |
334 | 331 | | |
335 | 332 | | |
| |||
368 | 365 | | |
369 | 366 | | |
370 | 367 | | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | 368 | | |
375 | 369 | | |
376 | 370 | | |
| |||
413 | 407 | | |
414 | 408 | | |
415 | 409 | | |
416 | | - | |
417 | | - | |
418 | | - | |
419 | | - | |
420 | | - | |
421 | | - | |
422 | 410 | | |
423 | 411 | | |
| 412 | + | |
424 | 413 | | |
425 | 414 | | |
426 | 415 | | |
| |||
463 | 452 | | |
464 | 453 | | |
465 | 454 | | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | 455 | | |
473 | 456 | | |
| 457 | + | |
474 | 458 | | |
475 | 459 | | |
476 | 460 | | |
| |||
0 commit comments