[Alignment][NFC] VectorLayout now uses Align internally
authorGuillaume Chatelet <gchatelet@google.com>
Thu, 2 Jul 2020 11:25:54 +0000 (11:25 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Thu, 2 Jul 2020 11:25:55 +0000 (11:25 +0000)
commitd2dcff60fe230bf5e5f7aeae931c982af4ef3721
treeb62c4c696bfd851f97360154272ad58d4765c6d1
parentfd6193d5ea4e4a021b9578b4271329f46b27e89c
[Alignment][NFC] VectorLayout now uses Align internally

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

Differential Revision: https://reviews.llvm.org/D82981
llvm/lib/Transforms/Scalar/Scalarizer.cpp