This is an archive of the discontinued LLVM Phabricator instance.

[SCEV][NFC-mostly] Remove constant handling in TripMultiple computation
ClosedPublic

Authored by caojoshua on May 14 2023, 11:59 PM.

Details

Summary

After landing more precise trip multiples in
https://reviews.llvm.org/D149529, the SCEV multiple computation handles
constants, so there is no longer any need for special constant handling
in getSmallConstantTripMultiple.

This patch can improve the multiple of a non-constant SCEV that is huge
(>=2**32). This is very rare in practice.

Diff Detail

Event Timeline

caojoshua created this revision.May 14 2023, 11:59 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 14 2023, 11:59 PM
caojoshua edited the summary of this revision. (Show Details)

update commit message

caojoshua published this revision for review.May 15 2023, 12:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 15 2023, 12:05 AM
nikic accepted this revision.May 16 2023, 1:10 AM

LGTM

This revision is now accepted and ready to land.May 16 2023, 1:10 AM