Commit a25d91a
authored
[RISCV] Skip DAG combine for bitcast fabs/fneg (llvm#115325)
Disable the DAG combine for bitcast fabs/fneg in case of the zdinx
extension.
The combine folds the fabs/fneg nodes in some cases. This might result
in suboptimal code if compiled with the zdinx extension. In case of the
zdinx extension, there is no need to load the double value from an x
register to an f register, so the combine can be skipped.1 parent 1adca7a commit a25d91a
File tree
4 files changed
+6
-12
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV
4 files changed
+6
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17085 | 17085 | | |
17086 | 17086 | | |
17087 | 17087 | | |
17088 | | - | |
| 17088 | + | |
17089 | 17089 | | |
17090 | 17090 | | |
17091 | 17091 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
847 | | - | |
848 | | - | |
| 847 | + | |
849 | 848 | | |
850 | 849 | | |
851 | 850 | | |
| |||
890 | 889 | | |
891 | 890 | | |
892 | 891 | | |
893 | | - | |
894 | | - | |
895 | | - | |
| 892 | + | |
896 | 893 | | |
897 | 894 | | |
898 | 895 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
41 | 40 | | |
42 | 41 | | |
43 | 42 | | |
| |||
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
82 | | - | |
83 | | - | |
| 81 | + | |
84 | 82 | | |
85 | 83 | | |
86 | 84 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
678 | 678 | | |
679 | 679 | | |
680 | 680 | | |
681 | | - | |
682 | | - | |
| 681 | + | |
683 | 682 | | |
684 | 683 | | |
685 | 684 | | |
| |||
0 commit comments