[llvm-commits] CVS: llvm/test/Regression/Transforms/SimplifyCFG/BrUnwind.ll
Chris Lattner
lattner at cs.uiuc.edu
Mon Jul 19 18:17:29 PDT 2004
Changes in directory llvm/test/Regression/Transforms/SimplifyCFG:
BrUnwind.ll added (r1.1)
---
Log message:
test that unconditional branches to unwinds are always eliminated
---
Diffs of the changes: (+12 -0)
Index: llvm/test/Regression/Transforms/SimplifyCFG/BrUnwind.ll
diff -c /dev/null llvm/test/Regression/Transforms/SimplifyCFG/BrUnwind.ll:1.1
*** /dev/null Mon Jul 19 20:17:29 2004
--- llvm/test/Regression/Transforms/SimplifyCFG/BrUnwind.ll Mon Jul 19 20:17:19 2004
***************
*** 0 ****
--- 1,12 ----
+ ;RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep 'br label'
+ void %test(bool %C) {
+ br bool %C, label %A, label %B
+ A:
+ call void %test(bool %C)
+ br label %X
+ B:
+ call void %test(bool %C)
+ br label %X
+ X:
+ unwind
+ }
More information about the llvm-commits
mailing list