1 ; RUN: opt < %s -passes=gvn | llvm-dis
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:32:32"
4 target triple = "i386-pc-linux-gnu"
5 %llvm.dbg.anchor.type = type { i32, i32 }
6 %struct.cset = type { ptr, i8, i8, i32, ptr }
7 %struct.lmat = type { ptr, i32, ptr, ptr, ptr, ptr, ptr, ptr, i32, ptr, ptr, ptr, ptr, ptr }
8 %struct.re_guts = type { ptr, ptr, ptr, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, i32, i32, i32, i32, [1 x i8] }
10 define ptr @lbackref(ptr %m, ptr %start, ptr %stop, i32 %startst, i32 %stopst, i32 %lev, i32 %rec) nounwind {
15 switch i32 0, label %bb62 [
16 i32 268435456, label %bb2
17 i32 805306368, label %bb9
18 i32 -1610612736, label %bb51
25 %0 = load i8, ptr %sp.1, align 1 ; <i8> [#uses=0]
29 %1 = load i8, ptr %sp.1, align 1 ; <i8> [#uses=0]
32 bb62: ; preds = %bb9, %bb2, %bb
35 bb63: ; preds = %bb84, %bb69, %bb62, %entry
36 %sp.1 = phi ptr [ null, %bb62 ], [ %sp.1.lcssa, %bb84 ], [ %start, %entry ], [ %sp.1.lcssa, %bb69 ] ; <ptr> [#uses=3]
37 br i1 false, label %bb, label %bb65
40 %sp.1.lcssa = phi ptr [ %sp.1, %bb63 ] ; <ptr> [#uses=4]
41 br i1 false, label %bb66, label %bb69
47 switch i32 0, label %bb108.loopexit2.loopexit.loopexit [
48 i32 1342177280, label %bb63
49 i32 1476395008, label %bb84
50 i32 1879048192, label %bb104
51 i32 2013265920, label %bb93
55 %2 = tail call ptr @lbackref(ptr %m, ptr %sp.1.lcssa, ptr %stop, i32 0, i32 %stopst, i32 0, i32 0) nounwind ; <ptr> [#uses=0]
61 bb104: ; preds = %bb69
62 %sp.1.lcssa.lcssa33 = phi ptr [ %sp.1.lcssa, %bb69 ] ; <ptr> [#uses=0]
65 bb108.loopexit2.loopexit.loopexit: ; preds = %bb69