[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyCFG/InvokeEliminate.ll

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 24 12:59:01 PDT 2003


Changes in directory llvm/test/Regression/Transforms/SimplifyCFG:

InvokeEliminate.ll added (r1.1)

---
Log message:

New testcase


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/SimplifyCFG/InvokeEliminate.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyCFG/InvokeEliminate.ll:1.1
*** /dev/null	Sun Aug 24 12:58:35 2003
--- llvm/test/Regression/Transforms/SimplifyCFG/InvokeEliminate.ll	Sun Aug 24 12:58:24 2003
***************
*** 0 ****
--- 1,19 ----
+ ; This testcase checks to see if the simplifycfg pass is converting invoke
+ ; instructions to call instructions if the handler just rethrows the exception.
+ 
+ ; If this test is successful, the function should be reduced to 'call; ret'
+ 
+ ; RUN: as < %s | opt -simplifycfg | dis | not egrep 'invoke|br'
+ 
+ declare void %bar()
+ declare void %llvm.unwind()
+ 
+ int %test() {
+ 	invoke void %bar() to label %Ok except label %Rethrow
+ Ok:
+ 	ret int 0
+ Rethrow:
+ 	call void %llvm.unwind()
+ 	br label %Ok
+ }
+ 





More information about the llvm-commits mailing list