Commit 2fa38f3
committed
[AArch64][SelectionDAG] Generate subs+csel for usub.sat
Fixes #191488
As this is a regression of
#170076, adds a check to avoid
generic lowering of usub.sat to X - zext(X != 0) in case of aarch64 via
a virtual hook in TargetLowering. All other backends will still receive
generic lowering as implemented in the original patch.
Change-Id: I0a194bcc9e66819c12d0f9179464823301f0d7bf1 parent 38e0a9e commit 2fa38f3
6 files changed
Lines changed: 34 additions & 4 deletions
File tree
- llvm
- include/llvm/CodeGen
- lib
- CodeGen/SelectionDAG
- Target/AArch64
- test/CodeGen/AArch64
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3595 | 3595 | | |
3596 | 3596 | | |
3597 | 3597 | | |
| 3598 | + | |
| 3599 | + | |
| 3600 | + | |
| 3601 | + | |
3598 | 3602 | | |
3599 | 3603 | | |
3600 | 3604 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11475 | 11475 | | |
11476 | 11476 | | |
11477 | 11477 | | |
11478 | | - | |
| 11478 | + | |
| 11479 | + | |
11479 | 11480 | | |
11480 | 11481 | | |
11481 | 11482 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30978 | 30978 | | |
30979 | 30979 | | |
30980 | 30980 | | |
| 30981 | + | |
| 30982 | + | |
| 30983 | + | |
| 30984 | + | |
| 30985 | + | |
30981 | 30986 | | |
30982 | 30987 | | |
30983 | 30988 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| 453 | + | |
| 454 | + | |
453 | 455 | | |
454 | 456 | | |
455 | 457 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
483 | 483 | | |
484 | 484 | | |
485 | 485 | | |
486 | | - | |
487 | | - | |
488 | | - | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
11 | 29 | | |
12 | 30 | | |
13 | 31 | | |
| |||
0 commit comments