This is an archive of the discontinued LLVM Phabricator instance.

[SCEV] Apply loop-guards to addrec's start in howManyGreaterThans
AbandonedPublic

Authored by aleksandr.popov on May 12 2023, 10:58 AM.

Details

Reviewers
None

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 10:58 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
aleksandr.popov requested review of this revision.May 12 2023, 10:58 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 12 2023, 10:58 AM
nikic added a subscriber: nikic.May 16 2023, 3:41 AM

It looks like there are many test failures.

The core problem with this change is that it makes the loop guard actually part of the returned BECount, which is generally not desirable if it will get expanded. Normally we only use loop guards to compute things like ranges.

aleksandr.popov abandoned this revision.May 30 2023, 10:12 AM

This change was related to https://reviews.llvm.org/D148001, but the final version of that patch is not based on Scev. So this change is not actual for now