1; RUN: opt < %s -newgvn | llvm-dis 2; Cached results must be added to and verified against the visited sets. 3; PR3217 4 5define fastcc void @gen_field_die(i32* %decl) nounwind { 6entry: 7 br i1 false, label %bb203, label %bb202 8 9bb202: ; preds = %entry 10 unreachable 11 12bb203: ; preds = %entry 13 %tmp = getelementptr i32, i32* %decl, i32 1 ; <i32*> [#uses=1] 14 %tmp1 = load i32, i32* %tmp, align 4 ; <i32> [#uses=0] 15 br i1 false, label %bb207, label %bb204 16 17bb204: ; preds = %bb203 18 %tmp2 = getelementptr i32, i32* %decl, i32 1 ; <i32*> [#uses=1] 19 br label %bb208 20 21bb207: ; preds = %bb203 22 br label %bb208 23 24bb208: ; preds = %bb207, %bb204 25 %iftmp.1374.0.in = phi i32* [ null, %bb207 ], [ %tmp2, %bb204 ] ; <i32*> [#uses=1] 26 %iftmp.1374.0 = load i32, i32* %iftmp.1374.0.in ; <i32> [#uses=0] 27 unreachable 28} 29