This is an archive of the discontinued LLVM Phabricator instance.

[ConstantFold] Fold non-zero index GEP_GV vs GV comparison
Needs ReviewPublic

Authored by StephenFan on Jul 21 2022, 8:06 AM.

Details

Reviewers
nikic
lebedev.ri
Summary

When comparing non-zero index GEP_GV and GV, if GEP's offset less than
the size of GEP's GV and is non-negative, we can try to fold this comparison.

Fixes https://github.com/llvm/llvm-project/issues/48778

Diff Detail

Event Timeline

StephenFan created this revision.Jul 21 2022, 8:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2022, 8:06 AM
StephenFan requested review of this revision.Jul 21 2022, 8:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 21 2022, 8:06 AM
lebedev.ri resigned from this revision.Jan 12 2023, 5:31 PM

This review may be stuck/dead, consider abandoning if no longer relevant.
Removing myself as reviewer in attempt to clean dashboard.