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

Chris Lattner lattner at cs.uiuc.edu
Fri May 26 18:16:34 PDT 2006



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

inline_constprop.ll added (r1.1)
---
Log message:

New testcase: check that the inliner constant folds instructions on the
fly if it can.


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

 inline_constprop.ll |   15 +++++++++++++++
 1 files changed, 15 insertions(+)


Index: llvm/test/Regression/Transforms/Inline/inline_constprop.ll
diff -c /dev/null llvm/test/Regression/Transforms/Inline/inline_constprop.ll:1.1
*** /dev/null	Fri May 26 20:16:32 2006
--- llvm/test/Regression/Transforms/Inline/inline_constprop.ll	Fri May 26 20:16:22 2006
***************
*** 0 ****
--- 1,15 ----
+ ; RUN: llvm-as < %s | opt -inline -disable-output &&
+ ; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep callee &&
+ ; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep div
+ 
+ implementation
+ 
+ internal int %callee(int %A, int %B) {
+ 	%C = div int %A, %B
+ 	ret int %C
+ }
+ 
+ int %test() {
+ 	%X = call int %callee(int 10, int 3)
+ 	ret int %X
+ }






More information about the llvm-commits mailing list