This is an archive of the discontinued LLVM Phabricator instance.

[DAGCombiner] Teach visitUMULO that a 1-bit UMULO can't overflow.
AbandonedPublic

Authored by craig.topper on Feb 28 2021, 8:05 AM.

Details

Reviewers
spatel
RKSimon
Summary

I don't think we can do this in getNode since we'd need to return
a MERGE_VALUES node which would be unusual.

Diff Detail

Event Timeline

craig.topper created this revision.Feb 28 2021, 8:05 AM
craig.topper requested review of this revision.Feb 28 2021, 8:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2021, 8:05 AM
craig.topper abandoned this revision.Feb 28 2021, 8:33 AM

A better fix is to just not early out if the N1 doesn't have any zero bits. That will also handle the case that we know nothing about operand 1, but operand 0 is known to be 0 or 1.