[ScalarizeMaskedMemIntrin] Fix the alignment calculation for the scalar stores of...
authorCraig Topper <craig.topper@intel.com>
Fri, 28 Sep 2018 01:06:13 +0000 (01:06 +0000)
committerCraig Topper <craig.topper@intel.com>
Fri, 28 Sep 2018 01:06:13 +0000 (01:06 +0000)
commitfdf4c76ca0a73b0c753329eb59804617a6003256
tree3714fa9bea31de5601ae6d9cfa449cc276fc09fe
parent92b992164d66371fb9796bfee82c7dddb6f381f8
[ScalarizeMaskedMemIntrin] Fix the alignment calculation for the scalar stores of a masked store expansion.

It should be the minimum of the original alignment and the scalar size.

llvm-svn: 343284
llvm/lib/CodeGen/ScalarizeMaskedMemIntrin.cpp
llvm/test/Transforms/ScalarizeMaskedMemIntrin/X86/expand-masked-store.ll