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

Description

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

Summary:
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 D32756 .

Reviewers: jyknight, nemanjai, mkuper, spatel, RKSimon, zvi, bkramer

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D32916

Details

Committed
deadalnixFri, May 19, 11:20 AM
Differential Revision
D32916: [DAGCombine] (addcarry 0, 0, X) -> (ext/trunc X)
Parents
rL303440: [lit] Take the last error when executing pipelines.
Branches
Unknown
Tags
Unknown