Commit e93181b
authored
[RISCV][VLOPT] Add vector fp-conversion instruction to isSupportedInstr (#122033)
When these instructions are marked nofpexcept, we can optimize them.
There are some added toggles in the output, likley because other
noexcept fp instructions are not part of isSupportedInstr yet. We may
want to avoid marking an instruction as isSupported in the future if any
of its FP users are missing nofpexcept to avoid added toggles. However,
we seem to get some GPRs back as a result of this change, which may
outweigh the cost of avoiding extra toggles.
The plan is to follow this patch up with added support for more FP
instructions in the same way. The instructions in this patch are a
natural starting point because they allow us to test with integer
instructions which have good support already.1 parent d6ae3d3 commit e93181b
File tree
17 files changed
+1155
-1122
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
17 files changed
+1155
-1122
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
940 | 940 | | |
941 | 941 | | |
942 | 942 | | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
943 | 967 | | |
944 | 968 | | |
945 | 969 | | |
| |||
1046 | 1070 | | |
1047 | 1071 | | |
1048 | 1072 | | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
1049 | 1078 | | |
1050 | 1079 | | |
1051 | 1080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
1257 | | - | |
| 1257 | + | |
1258 | 1258 | | |
1259 | 1259 | | |
1260 | | - | |
1261 | 1260 | | |
1262 | | - | |
1263 | 1261 | | |
1264 | 1262 | | |
1265 | 1263 | | |
| |||
1272 | 1270 | | |
1273 | 1271 | | |
1274 | 1272 | | |
1275 | | - | |
1276 | 1273 | | |
1277 | | - | |
1278 | 1274 | | |
1279 | 1275 | | |
1280 | 1276 | | |
| |||
4013 | 4009 | | |
4014 | 4010 | | |
4015 | 4011 | | |
| 4012 | + | |
4016 | 4013 | | |
4017 | 4014 | | |
4018 | | - | |
| 4015 | + | |
4019 | 4016 | | |
4020 | 4017 | | |
4021 | 4018 | | |
| |||
4197 | 4194 | | |
4198 | 4195 | | |
4199 | 4196 | | |
| 4197 | + | |
4200 | 4198 | | |
4201 | 4199 | | |
4202 | 4200 | | |
4203 | | - | |
| 4201 | + | |
4204 | 4202 | | |
4205 | 4203 | | |
4206 | 4204 | | |
| |||
4388 | 4386 | | |
4389 | 4387 | | |
4390 | 4388 | | |
| 4389 | + | |
4391 | 4390 | | |
4392 | 4391 | | |
4393 | 4392 | | |
4394 | | - | |
| 4393 | + | |
4395 | 4394 | | |
4396 | 4395 | | |
4397 | 4396 | | |
| |||
4579 | 4578 | | |
4580 | 4579 | | |
4581 | 4580 | | |
| 4581 | + | |
4582 | 4582 | | |
4583 | 4583 | | |
4584 | 4584 | | |
4585 | | - | |
| 4585 | + | |
4586 | 4586 | | |
4587 | 4587 | | |
4588 | 4588 | | |
| |||
0 commit comments