Commit a2f00e1
authored
[RISCV] Add fixed-length patterns for disjoint or patterns for vwadd[u].v{v,x} (#136824)
This is the fixed-length equivalent of #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 03c2862 commit a2f00e1
File tree
2 files changed
+53
-12
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
2 files changed
+53
-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 | + | |
| 2060 | + | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
2019 | 2064 | | |
2020 | 2065 | | |
2021 | 2066 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
903 | | - | |
904 | | - | |
| 902 | + | |
| 903 | + | |
905 | 904 | | |
906 | 905 | | |
907 | 906 | | |
| |||
913 | 912 | | |
914 | 913 | | |
915 | 914 | | |
916 | | - | |
917 | | - | |
918 | | - | |
| 915 | + | |
| 916 | + | |
919 | 917 | | |
920 | 918 | | |
921 | 919 | | |
| |||
927 | 925 | | |
928 | 926 | | |
929 | 927 | | |
930 | | - | |
931 | | - | |
932 | | - | |
| 928 | + | |
| 929 | + | |
933 | 930 | | |
934 | 931 | | |
935 | 932 | | |
| |||
943 | 940 | | |
944 | 941 | | |
945 | 942 | | |
946 | | - | |
947 | | - | |
948 | | - | |
| 943 | + | |
| 944 | + | |
949 | 945 | | |
950 | 946 | | |
951 | 947 | | |
| |||
0 commit comments