This is an archive of the discontinued LLVM Phabricator instance.

[SVE] Fix getAlignmentInfo for scalable vectors
ClosedPublic

Authored by david-arm on May 6 2020, 2:11 AM.

Details

Summary

When calculating the natural alignment for scalable vectors it
is acceptable to calculate an allocation size based on the minimum
number of elements in the vector.

This code path is exercised by an existing test:

CodeGen/AArch64/sve-intrinsics-int-arith.ll

Diff Detail

Event Timeline

david-arm created this revision.May 6 2020, 2:11 AM
Herald added a reviewer: efriedma. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
efriedma accepted this revision.May 6 2020, 9:02 AM

LGTM

This revision is now accepted and ready to land.May 6 2020, 9:02 AM
This revision was automatically updated to reflect the committed changes.