This is an archive of the discontinued LLVM Phabricator instance.

[DAG][ARM][AArch64] Transform max(a, b) - min(a,b) -> abd(a,b)
ClosedPublic

Authored by dmgreen on Jan 13 2023, 10:09 AM.

Details

Summary

This adds both signed and unsigned transforms for max(a, b) - min(a,b) -> abd(a,b).
unsigned: https://alive2.llvm.org/ce/z/RF4jGQ
signed: https://alive2.llvm.org/ce/z/Cjr2zE

Diff Detail

Event Timeline

dmgreen created this revision.Jan 13 2023, 10:09 AM
dmgreen requested review of this revision.Jan 13 2023, 10:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2023, 10:09 AM
RKSimon accepted this revision.Jan 13 2023, 2:13 PM

LGTM - cheers!

This revision is now accepted and ready to land.Jan 13 2023, 2:13 PM
This revision was landed with ongoing or failed builds.Jan 18 2023, 3:44 AM
This revision was automatically updated to reflect the committed changes.