This is an archive of the discontinued LLVM Phabricator instance.

[DAG] Fold (abds x, y) -> (abdu x, y) iff both args are known positive
ClosedPublic

Authored by RKSimon on Jun 20 2023, 3:24 AM.

Details

Summary

This is a generic DAG combine version of D151055 which recognizes when a signed ABDS can be safely replaced with a unsigned ABDU instruction if it has better legality.

Alive2: https://alive2.llvm.org/ce/z/pb5BjG

Diff Detail

Event Timeline

RKSimon created this revision.Jun 20 2023, 3:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2023, 3:24 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
RKSimon requested review of this revision.Jun 20 2023, 3:24 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 20 2023, 3:24 AM
lkail accepted this revision.Jun 20 2023, 4:49 AM

LGTM!

This revision is now accepted and ready to land.Jun 20 2023, 4:49 AM