[llvm-commits] CVS: llvm/test/Regression/Transforms/InstCombine/alloca.ll
Chris Lattner
lattner at cs.uiuc.edu
Fri Mar 19 00:08:02 PST 2004
Changes in directory llvm/test/Regression/Transforms/InstCombine:
alloca.ll added (r1.1)
---
Log message:
New testcase, the optimizer can delete zero sized allocas
---
Diffs of the changes: (+14 -0)
Index: llvm/test/Regression/Transforms/InstCombine/alloca.ll
diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/alloca.ll:1.1
*** /dev/null Fri Mar 19 00:07:54 2004
--- llvm/test/Regression/Transforms/InstCombine/alloca.ll Fri Mar 19 00:07:43 2004
***************
*** 0 ****
--- 1,14 ----
+ ; Zero byte allocas should be deleted.
+
+ ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep alloca
+
+ declare void %use(...)
+ void %test() {
+ %X = alloca [0 x int]
+ call void(...)* %use([0 x int] *%X)
+ %Y = alloca int, uint 0
+ call void(...)* %use(int* %Y)
+ %Z = alloca {}
+ call void(...)* %use({}* %Z)
+ ret void
+ }
More information about the llvm-commits
mailing list