Commit c764ee6
authored
[RISCV] Remove custom legalization of v2i16/v4i8 loads for P extension. (llvm#167651)
We can use the default legalization which will create an i32 load
followed by a v2i32 scalar_to_vector followed by a bitcast. We can isel
the scalar_to_vector like a bitcast and not generate any instructions
for it.1 parent 329dec9 commit c764ee6
File tree
2 files changed
+10
-17
lines changed- llvm/lib/Target/RISCV
2 files changed
+10
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2691 | 2691 | | |
2692 | 2692 | | |
2693 | 2693 | | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
| 2697 | + | |
| 2698 | + | |
| 2699 | + | |
| 2700 | + | |
| 2701 | + | |
| 2702 | + | |
| 2703 | + | |
2694 | 2704 | | |
2695 | 2705 | | |
2696 | 2706 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
516 | 516 | | |
517 | 517 | | |
518 | 518 | | |
519 | | - | |
520 | | - | |
521 | 519 | | |
522 | 520 | | |
523 | 521 | | |
| |||
14757 | 14755 | | |
14758 | 14756 | | |
14759 | 14757 | | |
14760 | | - | |
14761 | | - | |
14762 | | - | |
14763 | | - | |
14764 | | - | |
14765 | | - | |
14766 | | - | |
14767 | | - | |
14768 | | - | |
14769 | | - | |
14770 | | - | |
14771 | | - | |
14772 | | - | |
14773 | | - | |
14774 | | - | |
14775 | 14758 | | |
14776 | 14759 | | |
14777 | 14760 | | |
| |||
0 commit comments