summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/ARM/cmp.ll
Commit message (Collapse)AuthorAgeFilesLines
* ARM: use target-specific SUBS node when combining cmp with cmov.Tim Northover2018-12-031-16/+8
| | | | | | | | | | | This has two positive effects. First, using a custom node prevents recombination leading to an infinite loop since the output DAG is notionally a little more complex than the input one. Using a flag-setting instruction also allows the subtraction to be folded with the related comparison more easily. https://reviews.llvm.org/D53190 llvm-svn: 348122
* [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