Converts CSINC-branch sequence to single conditional branch
On ARM64 the optimization generates a single conditional branch
for csinc-branch sequences like in the examples below. This is
possible when the csinc sets or clears a register based on a condition
code and the branch checks that register. Also the condition
code may not be modified between the CINCR and the original branch.
Examples:
- csinc w9, wzr, wzr, <condition code> tbnz w9, #0, 0x44 to b.<inverted condition code>
2. csinc w9, wzr, wzr, <condition code> tbz w9, #0, 0x44 to b.<condition code>
Couldn't you just...
?