Fix PR10104 by adding a bounds check on a vector element access check. It was
authorCameron Zwarich <zwarich@apple.com>
Thu, 9 Jun 2011 01:45:33 +0000 (01:45 +0000)
committerCameron Zwarich <zwarich@apple.com>
Thu, 9 Jun 2011 01:45:33 +0000 (01:45 +0000)
commit96cc1d0dfbcf9c7ffffc65f0aa008ff532d444f4
tree977db1c3a32badee87361b9606b556a72cdc0f33
parentefe12907dd58d1d34ab10b0bd2ae9a099b996f53
Fix PR10104 by adding a bounds check on a vector element access check. It was
assuming that all offsets are legal vector accesses, and thus trying to access
the float member of { <2 x float>, float } as the 3rd element of the first
member.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132766 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/ScalarReplAggregates.cpp
test/Transforms/ScalarRepl/2011-06-08-VectorExtractValue.ll