licm is wasting time hoisting constant foldable operations,
[oota-llvm.git] / test / Transforms / ADCE / 2003-09-10-UnwindInstFail.ll
index 750e0b803b2e5222a841a6f613c08435d0422d83..444ca8ec904b9480d566eaaedf21f169f49ee6c8 100644 (file)
@@ -1,20 +1,19 @@
-; RUN: as < %s | opt -adce -disable-output
+; RUN: opt < %s -adce -disable-output
 
-implementation   ; Functions:
+define void @test() {
+        br i1 false, label %then, label %endif
 
-void %test() {
-       br bool false, label %then, label %endif
+then:           ; preds = %0
+        invoke void null( i8* null )
+                        to label %invoke_cont unwind label %invoke_catch
 
-then:
-       invoke void null( sbyte* null )
-                       to label %invoke_cont except label %invoke_catch
+invoke_catch:           ; preds = %then
+        unwind
 
-invoke_catch:
-       unwind
+invoke_cont:            ; preds = %then
+        ret void
 
-invoke_cont:
-       ret void
-
-endif:
-       ret void
+endif:          ; preds = %0
+        ret void
 }
+