This is an archive of the discontinued LLVM Phabricator instance.

[InstCombine] Verify CmpInst is equality in `foldICmpPow2Test`; PR63327
ClosedPublic

Authored by goldstein.w.n on Jun 15 2023, 9:10 AM.

Details

Summary

When D152728 hoisted the code to a helper function, it moved the call
to the helper outside of foldICmpEquality, so an equality check is
needed in the helper.

Diff Detail

Event Timeline

goldstein.w.n created this revision.Jun 15 2023, 9:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2023, 9:10 AM
goldstein.w.n requested review of this revision.Jun 15 2023, 9:10 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 15 2023, 9:10 AM
nikic accepted this revision.Jun 15 2023, 9:11 AM

LGTM

This revision is now accepted and ready to land.Jun 15 2023, 9:11 AM
fhahn accepted this revision.Jun 15 2023, 9:20 AM

LGTM, thanks

Please include Fixes #63327 in the commit message for GitHub to auto close

This revision was landed with ongoing or failed builds.Jun 15 2023, 10:21 AM
This revision was automatically updated to reflect the committed changes.