Commit 0439a4e
authored
[RISCV] Add new CondCode COND_CV_BEQIMM/COND_CV_BNEIMM for CV immediate branch (#135771)
If there is another branch instruction also with immediate operand, but
it is used to specify which bit to be tested is set or clear. We only
check whether operand2 is immediate or not here. There are no way to
distinguish between them.
So add new CondCode COND_CV_BEQIMM/COND_CV_BNEIMM that we can know what
kinds of immediate branch instruction are matched in Select_* Pseudo.1 parent e4f2191 commit 0439a4e
File tree
5 files changed
+33
-28
lines changed- llvm/lib/Target/RISCV
- GISel
5 files changed
+33
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
789 | 789 | | |
790 | 790 | | |
791 | 791 | | |
792 | | - | |
| 792 | + | |
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20645 | 20645 | | |
20646 | 20646 | | |
20647 | 20647 | | |
20648 | | - | |
| 20648 | + | |
20649 | 20649 | | |
20650 | 20650 | | |
20651 | 20651 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
974 | 974 | | |
975 | 975 | | |
976 | 976 | | |
977 | | - | |
978 | | - | |
979 | | - | |
980 | | - | |
981 | 977 | | |
982 | 978 | | |
983 | 979 | | |
| |||
990 | 986 | | |
991 | 987 | | |
992 | 988 | | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
993 | 993 | | |
994 | 994 | | |
995 | 995 | | |
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | | - | |
1031 | | - | |
| 1030 | + | |
1032 | 1031 | | |
1033 | 1032 | | |
1034 | 1033 | | |
1035 | 1034 | | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
| 1035 | + | |
1041 | 1036 | | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
| 1037 | + | |
1047 | 1038 | | |
1048 | 1039 | | |
1049 | 1040 | | |
| |||
1052 | 1043 | | |
1053 | 1044 | | |
1054 | 1045 | | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
1055 | 1050 | | |
1056 | 1051 | | |
1057 | 1052 | | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
| 1053 | + | |
| 1054 | + | |
1061 | 1055 | | |
1062 | 1056 | | |
1063 | 1057 | | |
| |||
1076 | 1070 | | |
1077 | 1071 | | |
1078 | 1072 | | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
1079 | 1077 | | |
1080 | 1078 | | |
1081 | 1079 | | |
| |||
1206 | 1204 | | |
1207 | 1205 | | |
1208 | 1206 | | |
1209 | | - | |
1210 | | - | |
1211 | | - | |
1212 | | - | |
| 1207 | + | |
| 1208 | + | |
1213 | 1209 | | |
1214 | 1210 | | |
1215 | 1211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
68 | | - | |
| 70 | + | |
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
791 | 791 | | |
792 | 792 | | |
793 | 793 | | |
| 794 | + | |
| 795 | + | |
| 796 | + | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
| 800 | + | |
794 | 801 | | |
795 | 802 | | |
796 | 803 | | |
| |||
807 | 814 | | |
808 | 815 | | |
809 | 816 | | |
810 | | - | |
| 817 | + | |
811 | 818 | | |
812 | 819 | | |
813 | 820 | | |
| |||
0 commit comments