This is an archive of the discontinued LLVM Phabricator instance.

[ValueTracking] soften assert for invertible recurrence matching
ClosedPublic

Authored by spatel on May 3 2021, 10:58 AM.

Details

Summary

There's a TODO comment in the code and discussion in D99912 about generalizing this, but I wasn't sure how to implement that, so just going with a potential minimal fix to avoid crashing.

The test is a reduction beyond useful code (there's no user of %user...), but it is based on https://llvm.org/PR50191, so this is asserting on real code.

Diff Detail

Event Timeline

spatel created this revision.May 3 2021, 10:58 AM
spatel requested review of this revision.May 3 2021, 10:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 3 2021, 10:58 AM
reames accepted this revision.May 3 2021, 11:35 AM

LGTM

Sorry, hadn't realized this was causing issues in ToT. I'd thought the revert had hidden this.

This revision is now accepted and ready to land.May 3 2021, 11:35 AM
This revision was landed with ongoing or failed builds.May 3 2021, 12:59 PM
This revision was automatically updated to reflect the committed changes.