[PATCH] D32687: [DAGCombine] (uaddo X, (addcarry Y, 0, Carry)) -> (addcarry X, Y, Carry)
Amaury SECHET via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 30 12:59:15 PDT 2017
deadalnix created this revision.
This is a common pattern that arise when legalizing large integers operations. Only do it when Y + 1 cannot overflow as this would change the carry behavior of uaddo .
https://reviews.llvm.org/D32687
Files:
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/adde-carry.ll
test/CodeGen/X86/mul-i1024.ll
test/CodeGen/X86/mul-i256.ll
test/CodeGen/X86/mul-i512.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32687.97241.patch
Type: text/x-patch
Size: 116635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170430/d2c10569/attachment-0001.bin>
More information about the llvm-commits
mailing list