https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117349
Bug ID: 117349
Summary: aarch64_gen_ccmp_next, aarch64_gen_ccmp_first contains
extra casts which can be removed
Product: gcc
Version: 15.0
Status: UNCONFIRMED
Keywords: internal-improvement
Severity: enhancement
Priority: P3
Component: target
Assignee: pinskia at gcc dot gnu.org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---
Target: aarch64
Since r14-3412-gbf64392d66f291 (which change the type of code), there are extra
casts in the code:
e.g.:
```
aarch64_gen_ccmp_first (rtx_insn **prep_seq, rtx_insn **gen_seq,
rtx_code code, tree treeop0, tree treeop1)
...
cc_mode = aarch64_select_cc_mode ((rtx_code) code, op0, op1);
```
Noticed while working on PR 117346 .