[PATCH] D46505: [DAGcombine] Teach the combiner about -a = ~a + 1
Amaury SECHET via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun May 6 11:56:16 PDT 2018
deadalnix created this revision.
deadalnix added reviewers: efriedma, spatel, RKSimon, zvi, bkramer.
Herald added a subscriber: llvm-commits.
This include variant for add, uaddo and addcarry. usubo and subcarry require the carry to be flipped to preserve semantic, but we chose to do the transform anyway in that case as to push the transform down the carry chain.
Repository:
rL LLVM
https://reviews.llvm.org/D46505
Files:
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/subcarry.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46505.145406.patch
Type: text/x-patch
Size: 5546 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180506/3606c093/attachment.bin>
More information about the llvm-commits
mailing list