This is an archive of the discontinued LLVM Phabricator instance.

[LoopVectorize] Fix crash for predicated instruction with scalable VF
AbandonedPublic

Authored by CarolineConcatto on Jul 22 2021, 3:46 AM.

Details

Reviewers
None
Summary

This patch avoids computing discounts for predicated instructions when the
VF is scalable.
There is no support for vectorization of loops with division because the
vectorizer cannot guarantee that zero divisions will not happen.

This loop now does not use VF scalable

for (long long i = 0; i < n; i++)
    if (cond[i])
      a[i] /= b[i];

Diff Detail

Event Timeline

CarolineConcatto requested review of this revision.Jul 22 2021, 3:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2021, 3:46 AM
CarolineConcatto abandoned this revision.Jul 22 2021, 3:48 AM

This is a replicated patch created by accident with arc diff:
https://reviews.llvm.org/D101916