Description[arm64] Generate adds/ands.
Perform the following transformation:
| Before | After |
|------------------+---------------------|
| add w2, w0, w1 | adds w2, w0, w1 |
| cmp w2, #0x0 | b.<cond'> <addr> |
| b.<cond> <addr> | |
|------------------+---------------------|
| add w2, w0, w1 | adds w2, w0, w1 |
| cmp #0x0, w2 | b.<cond'> <addr> |
| b.<cond> <addr> | |
and the same for and instructions instead of add. When the result of the
add/and is not used, generate cmn/tst instead. We need to take care with which
conditions we can handle and what new condition we map them to.
BUG=
Committed: https://crrev.com/317dc0578f21a7dd08568cbd802f6bf82b578591
Cr-Commit-Position: refs/heads/master@{#37400}
Patch Set 1 #Patch Set 2 : [arm64] Generate adds/ands. #Patch Set 3 : Rebase (needed changes from f5d90fc9f). Will follow with some updates (this is to help reviewing th… #Patch Set 4 : Fixed issues and added some more tests. #
Total comments: 2
Patch Set 5 : Remove static #
Messages
Total messages: 17 (6 generated)
|