diff options
author | Chris Lattner <sabre@nondot.org> | 2004-10-07 04:07:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-10-07 04:07:08 +0000 |
commit | 69406b06ad58784c40ba531afe4430b45219fe6c (patch) | |
tree | 5414ef5a2a2ecfe8455494aeb59255be13a04fb5 | |
parent | 6856912f5b9f35094f5575e7753313345a3bb1f7 (diff) |
Add new testcase, rename pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16799 91177308-0d34-0410-b5e6-96231b3b80d8
4 files changed, 11 insertions, 3 deletions
diff --git a/test/Transforms/GlobalConstifier/basictest.llx b/test/Transforms/GlobalConstifier/basictest.llx index 8305b8130a..46fac76433 100644 --- a/test/Transforms/GlobalConstifier/basictest.llx +++ b/test/Transforms/GlobalConstifier/basictest.llx @@ -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 index 0000000000..c0819c0c64 --- /dev/null +++ b/test/Transforms/GlobalConstifier/deadglobal.llx @@ -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 +} diff --git a/test/Transforms/GlobalConstifier/phi-select.llx b/test/Transforms/GlobalConstifier/phi-select.llx index 633ecd920e..29890600de 100644 --- a/test/Transforms/GlobalConstifier/phi-select.llx +++ b/test/Transforms/GlobalConstifier/phi-select.llx @@ -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 diff --git a/test/Transforms/GlobalConstifier/trivialstore.llx b/test/Transforms/GlobalConstifier/trivialstore.llx index c84d1fc133..af2d61287c 100644 --- a/test/Transforms/GlobalConstifier/trivialstore.llx +++ b/test/Transforms/GlobalConstifier/trivialstore.llx @@ -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 |