diff options
| author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-09-18 20:48:27 +0000 |
|---|---|---|
| committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-09-18 20:48:27 +0000 |
| commit | c00f3182243d097382b71af199719c3027d96900 (patch) | |
| tree | 3002c9de53002dbc8affa7147253991c5b0efcef /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
| parent | a042aa1d829bbf37dc1feeca66d1c3fe77d53272 (diff) | |
| download | bcm5719-llvm-c00f3182243d097382b71af199719c3027d96900.tar.gz bcm5719-llvm-c00f3182243d097382b71af199719c3027d96900.zip | |
[DAGCombine][ARM][X86] (sub Carry, X) -> (addcarry (sub 0, X), 0, Carry) fold
Summary:
`DAGCombiner::visitADDLikeCommutative()` already has a sibling fold:
`(add X, Carry) -> (addcarry X, 0, Carry)`
This fold, as suggested by @efriedma, helps recover from //some//
of the regressions of D62266
Reviewers: efriedma, deadalnix
Subscribers: javed.absar, kristof.beyls, llvm-commits, efriedma
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D62392
llvm-svn: 372259
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions

