Changes in directory llvm/test/Regression/Transforms/InstCombine:
deadcode.ll added (r1.1) --- Log message: New testcase, check that dead code doesn't pessimize instcombine --- Diffs of the changes: (+12 -0) deadcode.ll | 12 ++++++++++++ 1 files changed, 12 insertions(+) Index: llvm/test/Regression/Transforms/InstCombine/deadcode.ll diff -c /dev/null llvm/test/Regression/Transforms/InstCombine/deadcode.ll:1.1 *** /dev/null Wed May 10 13:56:14 2006 --- llvm/test/Regression/Transforms/InstCombine/deadcode.ll Wed May 10 13:56:04 2006 *************** *** 0 **** --- 1,12 ---- + ; RUN: llvm-as < %s | opt -instcombine | llvm-dis | grep 'ret int %A' + + int %test(int %A) { + %X = or bool false, false + br bool %X, label %T, label %C + T: + %B = add int %A, 1 + br label %C + C: + %C = phi int [%B, %T], [%A, %0] + ret int %C + } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits