[llvm-commits] CVS: llvm/test/Regression/Transforms/ADCE/dce_pure_call.ll dce_pure_invoke.ll

Chris Lattner lattner at cs.uiuc.edu
Sat Apr 10 01:53:01 PDT 2004


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

dce_pure_call.ll added (r1.1)
dce_pure_invoke.ll added (r1.1)

---
Log message:

New testcases


---
Diffs of the changes:  (+22 -0)

Index: llvm/test/Regression/Transforms/ADCE/dce_pure_call.ll
diff -c /dev/null llvm/test/Regression/Transforms/ADCE/dce_pure_call.ll:1.1
*** /dev/null	Sat Apr 10 01:52:30 2004
--- llvm/test/Regression/Transforms/ADCE/dce_pure_call.ll	Sat Apr 10 01:52:20 2004
***************
*** 0 ****
--- 1,9 ----
+ ; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep call
+ 
+ declare int %strlen(sbyte*)
+ 
+ void %test() {
+ 	;; Dead call should be deleted!
+ 	call int %strlen(sbyte *null)
+ 	ret void
+ }


Index: llvm/test/Regression/Transforms/ADCE/dce_pure_invoke.ll
diff -c /dev/null llvm/test/Regression/Transforms/ADCE/dce_pure_invoke.ll:1.1
*** /dev/null	Sat Apr 10 01:52:31 2004
--- llvm/test/Regression/Transforms/ADCE/dce_pure_invoke.ll	Sat Apr 10 01:52:20 2004
***************
*** 0 ****
--- 1,13 ----
+ ; RUN: llvm-as < %s | opt -adce | llvm-dis | not grep null
+ 
+ declare int %strlen(sbyte*)
+ 
+ int %test() {
+ 	;; Dead call should be deleted!
+ 	invoke int %strlen(sbyte *null) to label %Cont unwind label %Other
+ Cont:
+ 	ret int 0
+ Other:
+ 	ret int 1
+ }
+ 





More information about the llvm-commits mailing list