This is an archive of the discontinued LLVM Phabricator instance.

[InstSimplify] Add more tests for simplifying `(icmp ugt/ule (or X, Y), X)`; NFC
AbandonedPublic

Authored by goldstein.w.n on Aug 11 2023, 1:19 PM.

Details

Reviewers
nikic
Allen

Diff Detail

Unit TestsFailed

Event Timeline

goldstein.w.n created this revision.Aug 11 2023, 1:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2023, 1:19 PM
Herald added a subscriber: StephenFan. · View Herald Transcript
goldstein.w.n requested review of this revision.Aug 11 2023, 1:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 11 2023, 1:19 PM
nikic added inline comments.Aug 12 2023, 6:55 AM
llvm/test/Transforms/InstSimplify/icmp-orx-x.ll
110

Convert to param.

114

Drop the control flow.

Cleanup repro test.
Add tests with some common bits

goldstein.w.n marked 2 inline comments as done.Aug 12 2023, 10:46 AM
nikic accepted this revision.Aug 12 2023, 10:53 AM

LGTM

This revision is now accepted and ready to land.Aug 12 2023, 10:53 AM

I'm going to push these tests and abandon the impl.

goldstein.w.n abandoned this revision.Aug 12 2023, 2:53 PM

I'm going to add these tests for the new series.