[llvm-commits] CVS: llvm/test/Regression/Transforms/DeadArgElim/basictest.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Jun 17 17:23:01 PDT 2003
Changes in directory llvm/test/Regression/Transforms/DeadArgElim:
basictest.ll updated: 1.1 -> 1.2
---
Log message:
Make testcase more interesting, remove absolute path from -load line
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/DeadArgElim/basictest.ll
diff -u llvm/test/Regression/Transforms/DeadArgElim/basictest.ll:1.1 llvm/test/Regression/Transforms/DeadArgElim/basictest.ll:1.2
--- llvm/test/Regression/Transforms/DeadArgElim/basictest.ll:1.1 Mon Jun 16 07:05:38 2003
+++ llvm/test/Regression/Transforms/DeadArgElim/basictest.ll Tue Jun 17 17:21:55 2003
@@ -1,4 +1,4 @@
-; RUN: if as < %s | opt -load ~/llvm/lib/Debug/libhello.so -deadargelim | dis | grep DEADARG
+; RUN: if as < %s | opt -deadargelim | dis | grep DEADARG
; RUN: then exit 1
; RUN: else exit 0
; RUN: fi
@@ -25,3 +25,16 @@
ret void
}
+internal void %needarg(int %TEST) {
+ call int %needarg2(int %TEST)
+ ret void
+}
+
+internal int %needarg2(int %TEST) {
+ ret int %TEST
+}
+
+internal void %needarg3(int %TEST3) {
+ call void %needarg(int %TEST3)
+ ret void
+}
More information about the llvm-commits
mailing list