~ubuntu-branches/ubuntu/quantal/llvm-3.1/quantal

« back to all changes in this revision

Viewing changes to test/Transforms/Inline/alloca-in-scc.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-03-29 19:09:51 UTC
  • Revision ID: package-import@ubuntu.com-20120329190951-aq83ivog4cg8bxun
Tags: upstream-3.1~svn153643
ImportĀ upstreamĀ versionĀ 3.1~svn153643

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: opt < %s -inline | llvm-dis
 
2
 
 
3
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
 
4
target triple = "i386-apple-darwin10.0"
 
5
 
 
6
define i32 @main(i32 %argc, i8** %argv) nounwind ssp {
 
7
entry:
 
8
  call fastcc void @c() nounwind
 
9
  unreachable
 
10
}
 
11
 
 
12
define internal fastcc void @a() nounwind ssp {
 
13
entry:
 
14
  %al = alloca [3 x i32], align 4
 
15
  %0 = getelementptr inbounds [3 x i32]* %al, i32 0, i32 2 
 
16
  
 
17
  call fastcc void @c() nounwind
 
18
  unreachable
 
19
}
 
20
 
 
21
define internal fastcc void @b() nounwind ssp {
 
22
entry:
 
23
  tail call fastcc void @a() nounwind ssp
 
24
  unreachable
 
25
}
 
26
 
 
27
define internal fastcc void @c() nounwind ssp {
 
28
entry:
 
29
  call fastcc void @b() nounwind
 
30
  unreachable
 
31
}