summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/combine-add-usat.ll
Commit message (Collapse)AuthorAgeFilesLines
* [X86] Lower ISD::UADDO to use the Z flag instead of C flag when the RHS is a ↵Craig Topper2019-02-031-2/+2
| | | | | | | | | | | | | | | | | | | | | constant 1 to encourage INC formation. Summary: Add an additional combine to combineCarryThroughADD to reverse it back to the C flag to avoid regressions. I believe this catches the cases that D57547 got. Reviewers: RKSimon, spatel Reviewed By: spatel Subscribers: javed.absar, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D57637 llvm-svn: 352984
* [DAGCombiner] Add add/sub saturation undef handlingSimon Pilgrim2019-01-141-8/+4
| | | | | | | | Match ConstantFolding.cpp: (add_sat x, undef) -> -1 (sub_sat x, undef) -> 0 llvm-svn: 351070
* [X86] Add add/sub saturation undef tests.Simon Pilgrim2019-01-141-0/+26
| | | | llvm-svn: 351066
* [DAGCombiner] Enable add saturation constant foldingSimon Pilgrim2019-01-141-7/+18
| | | | llvm-svn: 351060
* [DAGCombiner] Add add saturation constant folding tests.Simon Pilgrim2019-01-141-6/+35
| | | | | | Exposes an issue with sadd_sat for computeOverflowKind, so I've disabled it for now. llvm-svn: 351057
* [DAGCombiner] If add_sat(x,y) can't overflow -> add(x,y)Simon Pilgrim2019-01-131-5/+5
| | | | | NOTE: We need more powerful signed overflow detection in computeOverflowKind llvm-svn: 351026
* [DAGCombiner] Some very basic add/sub saturation combines.Simon Pilgrim2019-01-131-14/+4
| | | | | | Handle combines with zero and constant canonicalization for adds. llvm-svn: 351024
* [X86] Add some basic add/sub saturation combine tests.Simon Pilgrim2019-01-131-0/+102
The actual combines will be added in a future commit. llvm-svn: 351023
OpenPOWER on IntegriCloud