[PATCH] D154533: [DAG] Improve carry reconstruction in combineCarryDiamond.

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 7 04:02:52 PDT 2023


deadalnix added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:3542
   // Verify that the carry/borrow in is plausibly a carry/borrow bit.
-  // TODO: make getAsCarry() aware of how partial carries are merged.
-  if (CarryIn.getOpcode() != ISD::ZERO_EXTEND)
----------------
barannikov88 wrote:
> It does not look like this TODO was addressed, unless I'm misunderstanding it.
> 
Indeed. I did not think that really needed after this logic change so I removed the TODO.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154533/new/

https://reviews.llvm.org/D154533



More information about the llvm-commits mailing list