[PATCH] D32916: [DAGCombine] (addcarry 0, 0, X) -> (ext/trunc X)

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 5 10:15:18 PDT 2017


deadalnix created this revision.

While this makes some case better and some case worse - so it's unclear if it is a worthy combine just by itself - this is a useful canonicalisation.

As per discussion in https://reviews.llvm.org/D32756 .


https://reviews.llvm.org/D32916

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/X86/addcarry.ll
  test/CodeGen/X86/mul-i1024.ll
  test/CodeGen/X86/mul-i256.ll
  test/CodeGen/X86/mul-i512.ll
  test/CodeGen/X86/overflow.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32916.97982.patch
Type: text/x-patch
Size: 289638 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170505/04930b34/attachment-0001.bin>


More information about the llvm-commits mailing list