This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] Add simplifications for `min/max(Abs(X), X)`
Needs RevisionPublic

Authored by goldstein.w.n on Mar 6 2023, 6:07 PM.

Diff Detail

Event Timeline

goldstein.w.n created this revision.Mar 6 2023, 6:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 6:07 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
goldstein.w.n requested review of this revision.Mar 6 2023, 6:07 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 6:07 PM
nikic requested changes to this revision.Mar 9 2023, 7:16 AM

Same here, you want folds along the lines of https://alive2.llvm.org/ce/z/4fWUpA.

This revision now requires changes to proceed.Mar 9 2023, 7:16 AM