Commit 631ca86
committed
[RISCV] Add fixed-length patterns for disjoint or patterns for vwadd[u].v{v,x}
This is the fixed-length equivalent of llvm#136716.
The pattern we need to match is ({s,z}ext_vl (or_vl disjoint a, b)). This only allows or_vls with an undef passthru, which allows us to ignore its mask and vl and just take it from the {s,z}ext_vl.
A riscv_or_vl_is_add_oneuse PatFrag is added to mirror or_is_add in RISCVInstrInfo.td.1 parent 8204931 commit 631ca86
File tree
2 files changed
+49
-12
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
2 files changed
+49
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
500 | 510 | | |
501 | 511 | | |
502 | 512 | | |
| |||
2016 | 2026 | | |
2017 | 2027 | | |
2018 | 2028 | | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
| 2036 | + | |
| 2037 | + | |
| 2038 | + | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
| 2042 | + | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
| 2050 | + | |
| 2051 | + | |
| 2052 | + | |
| 2053 | + | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
| 2057 | + | |
| 2058 | + | |
| 2059 | + | |
2019 | 2060 | | |
2020 | 2061 | | |
2021 | 2062 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
904 | | - | |
905 | | - | |
906 | | - | |
| 904 | + | |
| 905 | + | |
907 | 906 | | |
908 | 907 | | |
909 | 908 | | |
| |||
915 | 914 | | |
916 | 915 | | |
917 | 916 | | |
918 | | - | |
919 | | - | |
920 | | - | |
| 917 | + | |
| 918 | + | |
921 | 919 | | |
922 | 920 | | |
923 | 921 | | |
| |||
929 | 927 | | |
930 | 928 | | |
931 | 929 | | |
932 | | - | |
933 | | - | |
934 | | - | |
| 930 | + | |
| 931 | + | |
935 | 932 | | |
936 | 933 | | |
937 | 934 | | |
| |||
945 | 942 | | |
946 | 943 | | |
947 | 944 | | |
948 | | - | |
949 | | - | |
950 | | - | |
| 945 | + | |
| 946 | + | |
951 | 947 | | |
952 | 948 | | |
953 | 949 | | |
| |||
0 commit comments