comparison test/Analysis/BasicAA/struct-geps.ll @ 120:1172e4bd9c6f

update 4.0.0
author mir3636
date Fri, 25 Nov 2016 19:14:25 +0900
parents afa8332a0e37
children 803732b1fca8
comparison
equal deleted inserted replaced
101:34baf5011add 120:1172e4bd9c6f
160 define void @test_struct_in_array(%struct2* %st, i64 %i, i64 %j, i64 %k) { 160 define void @test_struct_in_array(%struct2* %st, i64 %i, i64 %j, i64 %k) {
161 %x = getelementptr %struct2, %struct2* %st, i32 0, i32 1, i32 1, i32 0 161 %x = getelementptr %struct2, %struct2* %st, i32 0, i32 1, i32 1, i32 0
162 %y = getelementptr %struct2, %struct2* %st, i32 0, i32 0, i32 1, i32 1 162 %y = getelementptr %struct2, %struct2* %st, i32 0, i32 0, i32 1, i32 1
163 ret void 163 ret void
164 } 164 }
165
166 ; PR27418 - Treat GEP indices with the same value but different types the same
167 ; CHECK-LABEL: test_different_index_types
168 ; CHECK: MustAlias: i16* %tmp1, i16* %tmp2
169 define void @test_different_index_types([2 x i16]* %arr) {
170 %tmp1 = getelementptr [2 x i16], [2 x i16]* %arr, i16 0, i32 1
171 %tmp2 = getelementptr [2 x i16], [2 x i16]* %arr, i16 0, i16 1
172 ret void
173 }