[llvm-commits] CVS: llvm/test/Regression/Transforms/Inline/inline_dce.ll

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 24 00:03:01 PDT 2003


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

inline_dce.ll added (r1.1)

---
Log message:

New testcase


---
Diffs of the changes:

Index: llvm/test/Regression/Transforms/Inline/inline_dce.ll
diff -c /dev/null llvm/test/Regression/Transforms/Inline/inline_dce.ll:1.1
*** /dev/null	Sun Aug 24 00:02:36 2003
--- llvm/test/Regression/Transforms/Inline/inline_dce.ll	Sun Aug 24 00:02:26 2003
***************
*** 0 ****
--- 1,25 ----
+ ; This checks to ensure that the inline pass deletes functions if they get 
+ ; inlined into all of their callers.
+ 
+ ; RUN: as < %s | opt -inline | dis | not grep %reallysmall
+ 
+ implementation
+ 
+ internal int %reallysmall(int %A) {
+ 	ret int %A
+ }
+ 
+ void %caller1() {
+ 	call int %reallysmall(int 5)
+ 	ret void
+ }
+ 
+ void %caller2(int %A) {
+ 	call int %reallysmall(int %A)
+ 	ret void
+ }
+ 
+ int %caller3(int %A) {
+ 	%B = call int %reallysmall(int %A)
+ 	ret int %B
+ }





More information about the llvm-commits mailing list