[PATCH] D29872: Do not legalize large add with addc/adde, introduce addcarry and do it with uaddo/addcarry

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 12 05:00:05 PST 2017


deadalnix created this revision.
Herald added a subscriber: igorb.

As per discution on how to get better codegen an large int legalization, it became clear that using a glue for the carry was preventing several desirable optimizations. Passing the carry down as a value allow for more flexibility.


https://reviews.llvm.org/D29872

Files:
  include/llvm/CodeGen/ISDOpcodes.h
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  lib/CodeGen/SelectionDAG/LegalizeTypes.h
  lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
  lib/CodeGen/TargetLoweringBase.cpp
  lib/Target/X86/X86ISelDAGToDAG.cpp
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/Generic/icmp-illegal.ll
  test/CodeGen/X86/known-bits.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29872.88121.patch
Type: text/x-patch
Size: 22610 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170212/080f6cb9/attachment.bin>


More information about the llvm-commits mailing list