Mercurial > hg > CbC > CbC_llvm
comparison test/Transforms/GlobalOpt/2009-11-16-BrokenPerformHeapAllocSRoA.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 | 95c75e76d11b |
children |
comparison
equal
deleted
inserted
replaced
84:f3e34b893a5f | 95:afa8332a0e37 |
---|---|
11 ; CHECK-NOT: @hashheader | 11 ; CHECK-NOT: @hashheader |
12 ; CHECK-NOT: @chartypes | 12 ; CHECK-NOT: @chartypes |
13 | 13 |
14 ; based on linit in office-ispell | 14 ; based on linit in office-ispell |
15 define void @test() nounwind ssp { | 15 define void @test() nounwind ssp { |
16 %1 = load i32* getelementptr inbounds (%struct.hashheader* @hashheader, i64 0, i32 13), align 8 ; <i32> [#uses=1] | 16 %1 = load i32, i32* getelementptr inbounds (%struct.hashheader, %struct.hashheader* @hashheader, i64 0, i32 13), align 8 ; <i32> [#uses=1] |
17 %2 = sext i32 %1 to i64 ; <i64> [#uses=1] | 17 %2 = sext i32 %1 to i64 ; <i64> [#uses=1] |
18 %3 = mul i64 %2, ptrtoint (%struct.strchartype* getelementptr (%struct.strchartype* null, i64 1) to i64) ; <i64> [#uses=1] | 18 %3 = mul i64 %2, ptrtoint (%struct.strchartype* getelementptr (%struct.strchartype, %struct.strchartype* null, i64 1) to i64) ; <i64> [#uses=1] |
19 %4 = tail call i8* @malloc(i64 %3) ; <i8*> [#uses=1] | 19 %4 = tail call i8* @malloc(i64 %3) ; <i8*> [#uses=1] |
20 ; CHECK-NOT: call i8* @malloc(i64 | 20 ; CHECK-NOT: call i8* @malloc(i64 |
21 %5 = bitcast i8* %4 to %struct.strchartype* ; <%struct.strchartype*> [#uses=1] | 21 %5 = bitcast i8* %4 to %struct.strchartype* ; <%struct.strchartype*> [#uses=1] |
22 store %struct.strchartype* %5, %struct.strchartype** @chartypes, align 8 | 22 store %struct.strchartype* %5, %struct.strchartype** @chartypes, align 8 |
23 ret void | 23 ret void |