blob: f9a3fe6233a558035a7d12e3cd53acdf8b72939a [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -indvars -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00003@fixtab = external global [29 x [29 x [2 x i32]]] ; <[29 x [29 x [2 x i32]]]*> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00005define void @init_optabs() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006entry:
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00007 br label %no_exit.0
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008
Tanya Lattner4c4d0b82008-03-01 09:15:35 +00009no_exit.0: ; preds = %no_exit.0, %entry
10 %p.0.0 = phi i32* [ getelementptr ([29 x [29 x [2 x i32]]]* @fixtab, i32 0, i32 0, i32 0, i32 0), %entry ], [ %inc.0, %no_exit.0 ] ; <i32*> [#uses=1]
11 %inc.0 = getelementptr i32* %p.0.0, i32 1 ; <i32*> [#uses=1]
12 br i1 false, label %no_exit.0, label %no_exit.1
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000014no_exit.1: ; preds = %no_exit.0
15 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000016}
Tanya Lattner4c4d0b82008-03-01 09:15:35 +000017