Changes in directory llvm/test/Transforms/InstCombine:
malloc-free-delete.ll added (r1.1) --- Log message: testcase for PR1201: http://llvm.org/PR1201 --- Diffs of the changes: (+12 -0) malloc-free-delete.ll | 12 ++++++++++++ 1 files changed, 12 insertions(+) Index: llvm/test/Transforms/InstCombine/malloc-free-delete.ll diff -c /dev/null llvm/test/Transforms/InstCombine/malloc-free-delete.ll:1.1 *** /dev/null Fri Apr 13 19:19:46 2007 --- llvm/test/Transforms/InstCombine/malloc-free-delete.ll Fri Apr 13 19:19:36 2007 *************** *** 0 **** --- 1,12 ---- + ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'ret i32 0' && + ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | not grep malloc + ; PR1201 + define i32 @main(i32 %argc, i8** %argv) { + %c_19 = alloca i8* ; <i8**> [#uses=2] + %malloc_206 = malloc i8, i32 10 ; <i8*> [#uses=1] + store i8* %malloc_206, i8** %c_19 + %tmp_207 = load i8** %c_19 ; <i8*> [#uses=1] + free i8* %tmp_207 + ret i32 0 + } + _______________________________________________ llvm-commits mailing list [EMAIL PROTECTED] http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits