This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Add tests for transforming `(icmp pred (and X, Y), X)`; NFC
ClosedPublic

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

Diff Detail

Event Timeline

goldstein.w.n created this revision.Mar 6 2023, 2:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 2:16 PM
goldstein.w.n requested review of this revision.Mar 6 2023, 2:16 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 6 2023, 2:16 PM
nikic added inline comments.May 28 2023, 3:43 AM
llvm/test/Transforms/InstCombine/icmp-of-and-x.ll
90

What are these barriers for?

goldstein.w.n added inline comments.Jun 29 2023, 1:35 AM
llvm/test/Transforms/InstCombine/icmp-of-and-x.ll
90

To prevent the branch from folding to a select.

RKSimon accepted this revision.Sep 1 2023, 5:50 AM
RKSimon added a subscriber: RKSimon.

LGTM

This revision is now accepted and ready to land.Sep 1 2023, 5:50 AM
This revision was landed with ongoing or failed builds.Sep 13 2023, 1:50 PM
This revision was automatically updated to reflect the committed changes.