summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/cmp.ll
Commit message (Collapse)AuthorAgeFilesLines
* [ARM] Materialise some boolean values to avoid a branchRoger Ferrer Ibanez2018-02-161-48/+41
| | | | | | | | | | | | | This patch combines some cases of ARMISD::CMOV for integers that arise in comparisons of the form a != b ? x : 0 a == b ? 0 : x and that currently (e.g. in Thumb1) are emitted as branches. Differential Revision: https://reviews.llvm.org/D34515 llvm-svn: 325323
* [ARM] Swap cmp operands for automatic shiftsSam Parker2017-10-251-0/+154
Swap the compare operands if the lhs is a shift and the rhs isn't, as in arm and T2 the shift can be performed by the compare for its second operand. Differential Revision: https://reviews.llvm.org/D39004 llvm-svn: 316562
OpenPOWER on IntegriCloud