[PATCH] D59208: [DAGCombiner] fold (addcarry (xor a, -1), b, c) -> (subcarry b, a, !c) and flip carry.
Amaury SECHET via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 11 07:11:37 PDT 2019
deadalnix created this revision.
deadalnix added reviewers: hfinkel, RKSimon, craig.topper.
Herald added a project: LLVM.
As per title. DAGCombiner only mathes the special case where b = 0, this patches extends the pattern to match any value of b.
Depends on D57302 <https://reviews.llvm.org/D57302>
Repository:
rL LLVM
https://reviews.llvm.org/D59208
Files:
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/addcarry.ll
test/CodeGen/X86/subcarry.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59208.190083.patch
Type: text/x-patch
Size: 5981 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190311/a6b2b07c/attachment.bin>
More information about the llvm-commits
mailing list