This is an archive of the discontinued LLVM Phabricator instance.

[Alignment][NFC] VectorLayout now uses Align internally
ClosedPublic

Authored by gchatelet on Jul 1 2020, 9:22 AM.

Details

Summary

By rewritting ScalarizerVisitor::getVectorLayout in such a way it returns VectorLayout (or None) it becomes obvious that VectorLayout::VecAlign cannot be 0.

This patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Diff Detail

Event Timeline

gchatelet created this revision.Jul 1 2020, 9:22 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 1 2020, 9:22 AM
gchatelet marked an inline comment as done.Jul 2 2020, 1:29 AM
gchatelet added inline comments.
llvm/lib/Transforms/Scalar/Scalarizer.cpp
438

You should start the review from here.

courbet accepted this revision.Jul 2 2020, 4:10 AM
This revision is now accepted and ready to land.Jul 2 2020, 4:10 AM
This revision was automatically updated to reflect the committed changes.