This is an archive of the discontinued LLVM Phabricator instance.

[BasicTTI] Don't unroll vectorized loops (WIP).
Needs ReviewPublic

Authored by fhahn on Aug 16 2022, 8:39 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Vector loops created by LoopVectorize should not benefit from
additional unrolling, because LV will interleave iterations to increase
parallelism (if profitable on the target) and almost all
canonicalization should have happened earlier.

After eaf48dd9b079c005d92ed9ef858f12bc452e71ef, loop unrolling is also
not needed to remove the backedge for vector loops where the VF >= the
vector trip count.

Diff Detail

Event Timeline

fhahn created this revision.Aug 16 2022, 8:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2022, 8:39 AM
Herald added a subscriber: zzheng. · View Herald Transcript
fhahn requested review of this revision.Aug 16 2022, 8:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 16 2022, 8:39 AM