Commit 61c9f97
[RISCV] Don't create BuildPairF64 or SplitF64 nodes without D or Zdinx. (llvm#116159)
The fix in ReplaceNodeResults is the only one really required for the
known crash.
I couldn't hit the case in LowerOperation because that requires (f64
(bitcast i64)), but the result type is softened before the input so we
don't get a chance to legalize the input.
The change to the setOperationAction call was an observation that a
i64<->vector cast should not be custom legalized on RV32. The custom
code already calls isTypeLegal on the scalar type.1 parent 07b4f63 commit 61c9f97
File tree
2 files changed
+29
-4
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
2 files changed
+29
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1396 | 1396 | | |
1397 | 1397 | | |
1398 | 1398 | | |
1399 | | - | |
1400 | | - | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
1401 | 1402 | | |
1402 | 1403 | | |
1403 | 1404 | | |
| |||
6317 | 6318 | | |
6318 | 6319 | | |
6319 | 6320 | | |
6320 | | - | |
| 6321 | + | |
| 6322 | + | |
6321 | 6323 | | |
6322 | 6324 | | |
6323 | 6325 | | |
| |||
12616 | 12618 | | |
12617 | 12619 | | |
12618 | 12620 | | |
12619 | | - | |
| 12621 | + | |
| 12622 | + | |
12620 | 12623 | | |
12621 | 12624 | | |
12622 | 12625 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
0 commit comments