[DAG] Improve carry reconstruction in combineCarryDiamond.
authorAmaury Séchet <deadalnix@gmail.com>
Wed, 5 Jul 2023 17:45:01 +0000 (17:45 +0000)
committerAmaury Séchet <deadalnix@gmail.com>
Sat, 22 Jul 2023 22:49:48 +0000 (22:49 +0000)
commit88452508f35f0140be1dbb03516929ed48342236
tree79315a8ddf154a16d312ede8dc338c8714126b19
parent7a31ac311824011a39ab1e2cf5d2a7a116b0960c
[DAG] Improve carry reconstruction in combineCarryDiamond.

The gain is usually suffiscient to go the extra mile and reconstruct a carry in some cases.

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D154533
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/addcarry.ll