]> granicus.if.org Git - llvm/commit
SROA: The alloca type isn't a candidate promotion type for vectors
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 21 Nov 2014 02:34:55 +0000 (02:34 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 21 Nov 2014 02:34:55 +0000 (02:34 +0000)
commit9970214474a81a357ea6541709ad06c607a23b2e
tree011bd6a1ebd28c7237cee791debcf64c826f8568
parent57ec3b54886b912b32b2f84b77ca6ec445e7aa24
SROA: The alloca type isn't a candidate promotion type for vectors

The alloca's type is irrelevant, only those types which are used in a
load or store of the exact size of the slice should be considered.

This manifested as an assertion failure when we compared the various
types: we had a size mismatch.

This fixes PR21480.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222499 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/Reassociate.cpp
lib/Transforms/Scalar/SROA.cpp
test/Transforms/SROA/vector-promotion.ll