Add new testcase, rename pass
authorChris Lattner <sabre@nondot.org>
Thu, 7 Oct 2004 04:07:08 +0000 (04:07 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 7 Oct 2004 04:07:08 +0000 (04:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16799 91177308-0d34-0410-b5e6-96231b3b80d8

test/Transforms/GlobalConstifier/basictest.llx
test/Transforms/GlobalConstifier/deadglobal.llx [new file with mode: 0644]
test/Transforms/GlobalConstifier/phi-select.llx
test/Transforms/GlobalConstifier/trivialstore.llx

index 8305b8130a41426bd177054a882859eab53d80c4..46fac76433b3320360243caac343a7885614b714 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -constify | llvm-dis | not grep global
+; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep global
 
 %X = internal global int 4
 
diff --git a/test/Transforms/GlobalConstifier/deadglobal.llx b/test/Transforms/GlobalConstifier/deadglobal.llx
new file mode 100644 (file)
index 0000000..c0819c0
--- /dev/null
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep internal
+
+%G = internal global int 123
+
+void %foo() {
+       store int 1, int* %G
+       ret void
+}
index 633ecd920eba6c469abf704750df31ce49425e96..29890600def61b8e6bbb1c1d890bfb659d06d56b 100644 (file)
@@ -1,7 +1,7 @@
 ; Test that PHI nodes and select instructions do not necessarily make stuff
 ; non-constant.
 
-; RUN: llvm-as < %s | opt -constify | llvm-dis | not grep global
+; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep global
 
 %X = internal global int 4
 %Y = internal global int 5
index c84d1fc133831ef8f9a3b62214ca89093c9681eb..af2d61287c2759bcd366c08e03cbc7273c3a6e7e 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | opt -constify | llvm-dis | not grep G
+; RUN: llvm-as < %s | opt -globalopt | llvm-dis | not grep G
 
 %G = internal global int 17