comparison test/Transforms/ScalarRepl/memset-aggregate-byte-leader.ll @ 95:afa8332a0e37 LLVM3.8

LLVM 3.8
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Tue, 13 Oct 2015 17:48:58 +0900
parents 54457678186b
children
comparison
equal deleted inserted replaced
84:f3e34b893a5f 95:afa8332a0e37
10 10
11 11
12 define i32 @test1(%struct.foo* %P) { 12 define i32 @test1(%struct.foo* %P) {
13 entry: 13 entry:
14 %L = alloca %struct.foo, align 2 ; <%struct.foo*> [#uses=1] 14 %L = alloca %struct.foo, align 2 ; <%struct.foo*> [#uses=1]
15 %L2 = getelementptr %struct.foo* %L, i32 0, i32 0 ; <i8*> [#uses=2] 15 %L2 = getelementptr %struct.foo, %struct.foo* %L, i32 0, i32 0 ; <i8*> [#uses=2]
16 %tmp13 = getelementptr %struct.foo* %P, i32 0, i32 0 ; <i8*> [#uses=1] 16 %tmp13 = getelementptr %struct.foo, %struct.foo* %P, i32 0, i32 0 ; <i8*> [#uses=1]
17 call void @llvm.memcpy.p0i8.p0i8.i32( i8* %L2, i8* %tmp13, i32 2, i32 1, i1 false) 17 call void @llvm.memcpy.p0i8.p0i8.i32( i8* %L2, i8* %tmp13, i32 2, i32 1, i1 false)
18 %tmp5 = load i8* %L2 ; <i8> [#uses=1] 18 %tmp5 = load i8, i8* %L2 ; <i8> [#uses=1]
19 %tmp56 = sext i8 %tmp5 to i32 ; <i32> [#uses=1] 19 %tmp56 = sext i8 %tmp5 to i32 ; <i32> [#uses=1]
20 ret i32 %tmp56 20 ret i32 %tmp56
21 } 21 }
22 22
23 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1) 23 declare void @llvm.memcpy.p0i8.p0i8.i32(i8* nocapture, i8* nocapture, i32, i32, i1)