Use the llvm-upgrade program to upgrade llvm assembly.
[oota-llvm.git] / test / Transforms / GCSE / 2003-06-13-LoadStoreEliminate.ll
1 ; This testcase shows a bug where an common subexpression exists, but there
2 ; is no shared dominator block that the expression can be hoisted out to.
3 ;
4 ; RUN: llvm-upgrade < %s | llvm-as | opt -load-vn -gcse | llvm-dis | not grep load
5
6 int %test(int* %P) {
7         store int 5, int* %P
8         %Z = load int* %P
9         ret int %Z
10 }
11