This is an archive of the discontinued LLVM Phabricator instance.

[X86] Add tests for inverting `(x * (Pow2_Ceil(C1) - (1 << C0))) & C1` -> `(-x << C0) & C1`; NFC
ClosedPublic

Authored by goldstein.w.n on May 10 2023, 1:10 PM.

Diff Detail

Event Timeline

goldstein.w.n created this revision.May 10 2023, 1:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2023, 1:10 PM
goldstein.w.n requested review of this revision.May 10 2023, 1:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 10 2023, 1:10 PM
goldstein.w.n retitled this revision from [X86] Add tests for transforming `(x*C0)&C1`->`(-x<<log2(C0&(-C0)))&C1`; NFC to [X86] Add tests for inverting `(x * (Pow2_Ceil(C1) - (1 << C0))) & C1` -> `(-x << C0) & C1`; NFC.May 11 2023, 3:04 PM
RKSimon accepted this revision.May 13 2023, 4:13 AM

LGTM

This revision is now accepted and ready to land.May 13 2023, 4:13 AM
This revision was landed with ongoing or failed builds.May 13 2023, 12:36 PM
This revision was automatically updated to reflect the committed changes.