This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Add tests for folding (icmp UnsignedPred X * Z, Y * Z) -> (icmp UnsignedPred X, Y); NFC
ClosedPublic

Authored by goldstein.w.n on Jan 27 2023, 3:25 PM.

Diff Detail

Event Timeline

goldstein.w.n created this revision.Jan 27 2023, 3:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2023, 3:25 PM
goldstein.w.n requested review of this revision.Jan 27 2023, 3:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 27 2023, 3:25 PM

Hopefully this a reasonable number of tests cases, but lmk if I need to trim (or vice versa).

spatel accepted this revision.Feb 3 2023, 9:11 AM

LGTM

This revision is now accepted and ready to land.Feb 3 2023, 9:11 AM