[ScalarizeMaskedMemIntrin][SelectionDAGBuilder] Use the element type to calculate...
authorCraig Topper <craig.topper@sifive.com>
Fri, 2 Jul 2021 00:08:23 +0000 (17:08 -0700)
committerCraig Topper <craig.topper@sifive.com>
Fri, 2 Jul 2021 02:08:47 +0000 (19:08 -0700)
commit066524ea5438c5c30ac91a7702091be6dc5fd2d0
tree1194ecd53ebb50b75a842d309eb1ffbb8dd9769c
parent9ab5f761176c376c0a117c53f0f111fed1bcc842
[ScalarizeMaskedMemIntrin][SelectionDAGBuilder] Use the element type to calculate alignment for gather/scatter when alignment operand is 0.

Previously we used the vector type, but we're loading/storing
invididual elements so I think only element alignment should matter.

Noticed while looking at the code for something else so I don't
have a test case.

Differential Revision: https://reviews.llvm.org/D105220
llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
llvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp