[Alignment][NFC] Use Align with CreateMaskedScatter/Gather
authorGuillaume Chatelet <gchatelet@google.com>
Fri, 24 Jan 2020 16:40:17 +0000 (17:40 +0100)
committerGuillaume Chatelet <gchatelet@google.com>
Mon, 27 Jan 2020 09:17:14 +0000 (10:17 +0100)
commitd0a7cc717734ca85e9ad652671d8dfa2456243a7
tree799353aee44bd5580a13ff141b501ab835e155ad
parent2c1a142a78ffe8ed06fd7bfd17750afdceeaecc9
[Alignment][NFC] Use Align with CreateMaskedScatter/Gather

Summary:
This is 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

This patch shows that CreateMaskedScatter/CreateMaskedGather can only take positive non zero alignment values.

Reviewers: courbet

Subscribers: hiraditya, llvm-commits, delena

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D73361
llvm/include/llvm/IR/IRBuilder.h
llvm/lib/IR/IRBuilder.cpp
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp