Improve vectorization diagnostic messages and extend vectorize(enable) pragma.
[oota-llvm.git] / test / Transforms / ADCE / dce_pure_invoke.ll
index f8111456efd14f6f3ba52babf830905c32e87fac..e01c9feaeb065c6613f10757bfa9098a5f945e5b 100644 (file)
@@ -1,8 +1,8 @@
-; RUN: opt %s -adce | llvm-dis | grep null
+; RUN: opt < %s -adce -S | grep null
 
 declare i32 @strlen(i8*) readnone
 
-define i32 @test() {
+define i32 @test() personality i32 (...)* @__gxx_personality_v0 {
        ; invoke of pure function should not be deleted!
        invoke i32 @strlen( i8* null ) readnone
                        to label %Cont unwind label %Other              ; <i32>:1 [#uses=0]
@@ -11,5 +11,9 @@ Cont:         ; preds = %0
        ret i32 0
 
 Other:         ; preds = %0
+         %exn = landingpad {i8*, i32}
+                  cleanup
        ret i32 1
 }
+
+declare i32 @__gxx_personality_v0(...)