Commit 6cd1750
committed
[RISCV] Add disjoint or patterns for vwadd[u].vv
DAGCombiner::hoistLogicOpWithSameOpcodeHands will hoist
(or disjoint (ext a), (ext b)) -> (ext (or disjoint a, b))
So this adds a pattern to match vwadd[u].vv in this case.
We have to teach the combine to preserve the disjoint flag, and add a generic PatFrag for a disjoint or.
This is meant to be a follow up to llvm#136677 which would allow us to remove the target hook added there.1 parent 053451c commit 6cd1750
File tree
4 files changed
+30
-11
lines changed- llvm
- include/llvm/Target
- lib
- CodeGen/SelectionDAG
- Target/RISCV
- test/CodeGen/RISCV/rvv
4 files changed
+30
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
1116 | 1120 | | |
1117 | 1121 | | |
1118 | 1122 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5982 | 5982 | | |
5983 | 5983 | | |
5984 | 5984 | | |
5985 | | - | |
| 5985 | + | |
| 5986 | + | |
| 5987 | + | |
5986 | 5988 | | |
5987 | 5989 | | |
5988 | 5990 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
912 | 912 | | |
913 | 913 | | |
914 | 914 | | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
915 | 934 | | |
916 | 935 | | |
917 | 936 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1417 | 1417 | | |
1418 | 1418 | | |
1419 | 1419 | | |
1420 | | - | |
1421 | | - | |
1422 | 1420 | | |
1423 | 1421 | | |
1424 | 1422 | | |
1425 | 1423 | | |
1426 | | - | |
1427 | | - | |
1428 | | - | |
| 1424 | + | |
| 1425 | + | |
1429 | 1426 | | |
1430 | 1427 | | |
1431 | 1428 | | |
1432 | 1429 | | |
1433 | 1430 | | |
1434 | 1431 | | |
1435 | 1432 | | |
1436 | | - | |
1437 | | - | |
1438 | 1433 | | |
1439 | 1434 | | |
1440 | 1435 | | |
1441 | 1436 | | |
1442 | | - | |
1443 | | - | |
1444 | | - | |
| 1437 | + | |
| 1438 | + | |
1445 | 1439 | | |
1446 | 1440 | | |
1447 | 1441 | | |
| |||
0 commit comments