Merging r259696:
[oota-llvm.git] / test / Transforms / SimplifyCFG / dbginfo.ll
index ddbaccb16587c307fa44a8afc6cf8d9e9430d9f4..12aec91c6c55f11ae7689cef7d5a9bdc175bf812 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep region | count 1
-; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep func.start | count 1
+; RUN: opt < %s -simplifycfg -S | not grep "br label"
+
        %llvm.dbg.anchor.type = type { i32, i32 }
        %llvm.dbg.basictype.type = type { i32, { }*, i8*, { }*, i32, i64, i64, i64, i32, i32 }
        %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8* }
@@ -58,7 +58,7 @@ entry:
        %"alloca point" = bitcast i32 0 to i32          ; <i32> [#uses=0]
        call void @llvm.dbg.func.start({ }* bitcast (%llvm.dbg.subprogram.type* @llvm.dbg.subprogram947 to { }*))
        store %struct.__false_type* %this, %struct.__false_type** %this_addr
-       %0 = load %struct.__false_type** %this_addr, align 4            ; <%struct.__false_type*> [#uses=1]
+       %0 = load %struct.__false_type*, %struct.__false_type** %this_addr, align 4             ; <%struct.__false_type*> [#uses=1]
        call void @_ZN9__gnu_cxx13new_allocatorIP5SceneED2Ev(%struct.__false_type* %0) nounwind
        br label %bb