summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/AArch64/select_cc.ll
Commit message (Collapse)AuthorAgeFilesLines
* [SelectionDAG] swap select_cc operands to enable foldingAlexandros Lamprineas2018-11-091-0/+54
The DAGCombiner tries to SimplifySelectCC as follows: select_cc(x, y, 16, 0, cc) -> shl(zext(set_cc(x, y, cc)), 4) It can't cope with the situation of reordered operands: select_cc(x, y, 0, 16, cc) In that case we just need to swap the operands and invert the Condition Code: select_cc(x, y, 16, 0, ~cc) Differential Revision: https://reviews.llvm.org/D53236 llvm-svn: 346484
OpenPOWER on IntegriCloud