summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/InstCombine/select_arithmetic.ll
Commit message (Collapse)AuthorAgeFilesLines
* [InstCombine] auto-generate complete checks; NFCSanjay Patel2018-02-281-26/+36
| | | | llvm-svn: 326331
* [InstCombine] Gating select arithmetic optimization.Chad Rosier2017-09-271-2/+46
| | | | | | | | | | | | These changes faciliate positive behavior for arithmetic based select expressions that match its translation criteria, keeping code size gated to neutral or improved scenarios. Patch by Michael Berg <michael_c_berg@apple.com>! Differential Revision: https://reviews.llvm.org/D38263 llvm-svn: 314320
* [InstCombine] Add select simplificationsQuentin Colombet2017-09-201-0/+40
In these cases, two selects have constant selectable operands for both the true and false components and have the same conditional expression. We then create two arithmetic operations of the same type and feed a final select operation using the result of the true arithmetic for the true operand and the result of the false arithmetic for the false operand and reuse the original conditionl expression. The arithmetic operations are naturally folded as a consequence, leaving only the newly formed select to replace the old arithmetic operation. Patch by: Michael Berg <michael_c_berg@apple.com> Differential Revision: https://reviews.llvm.org/D37019 llvm-svn: 313774
OpenPOWER on IntegriCloud