This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Don't combine (addcarry (uaddo X, Y), 0, Carry) -> (addcarry X, Y, Carry) if the Carry comes from the uaddo.
ClosedPublic

Authored by craig.topper on Jul 3 2019, 6:52 PM.

Details

Summary

The uaddo won't be removed and the addcarry will still be
dependent on the uaddo. So we'll just increase the use count
of X and Y and potentially require a COPY.

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.Jul 3 2019, 6:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 3 2019, 6:52 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon accepted this revision.Jul 4 2019, 8:54 AM

LGTM

This revision is now accepted and ready to land.Jul 4 2019, 8:54 AM
This revision was automatically updated to reflect the committed changes.