Fix MergeInVectorType to check for vector types with the same alloc
authorDan Gohman <gohman@apple.com>
Thu, 21 Jul 2011 23:30:09 +0000 (23:30 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 21 Jul 2011 23:30:09 +0000 (23:30 +0000)
commit856e13ddace4174ad1b07f65ebb18b2fd835ed57
tree3055818eb6850f9fc842d47897e12080a1ed12a9
parent7c6e42e9273168ba9b1273a1580d569e1bac0e91
Fix MergeInVectorType to check for vector types with the same alloc
size but different element types, so that it filters out the cases
that CreateShuffleVectorCast doesn't handle. This fixes rdar://9786827.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135721 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/vectors-with-mismatched-elements.ll [new file with mode: 0644]