scalarrepl should not split the two elements of the vsiidx array:
authorChris Lattner <sabre@nondot.org>
Tue, 7 Nov 2006 22:42:29 +0000 (22:42 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 7 Nov 2006 22:42:29 +0000 (22:42 +0000)
commit03507f53c495e5a91e3c83120bdcb5be5d024950
tree0b68cc28743ce9aec55540237bb5317468f0aaf5
parent889739c4d188d28c167644bced9df0f3131317d7
scalarrepl should not split the two elements of the vsiidx array:
int func(vFloat v0, vFloat v1) {
int ii;
vSInt32 vsiidx[2];
vsiidx[0] = _mm_cvttps_epi32(v0);
vsiidx[1] = _mm_cvttps_epi32(v1);
ii = ((int *) vsiidx)[4];
return ii;
}

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31523 91177308-0d34-0410-b5e6-96231b3b80d8
test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll [new file with mode: 0644]