This is an archive of the discontinued LLVM Phabricator instance.

[LV] Improve VF-aware uniformity checks by handling LShr.
Needs ReviewPublic

Authored by vporpo on Apr 7 2023, 11:02 AM.
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

Until now the VF-aware uniformity check would only check for division i/NUM.
This patch extends it to support shift-rights, like: i >> N.
So the access to A[i>>2] in the following loop will no longer be considered
a gather for a VF of 4.

for (i = 0; i != N; ++i)
  ... = ... A[i>>2]

Diff Detail