Test that prune-eh doesn't make deductions based
[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-as < %s | opt -load-vn -gcse | llvm-dis | not grep load
5
6 define i32 @test(i32* %P) {
7         store i32 5, i32* %P
8         %Z = load i32* %P               ; <i32> [#uses=1]
9         ret i32 %Z
10 }
11