80a5446e6dc44b15dd4bbcb253db14fa0071bb49
[oota-llvm.git] / test / Transforms / SimplifyCFG / hoist-common-code.ll
1 ; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | not grep 'br'
2 declare void %bar(int)
3
4 void %test(bool %P, int* %Q) {
5         br bool %P, label %T, label %F
6 T:
7         store int 1, int* %Q
8         %A = load int* %Q
9         call void %bar(int %A)
10         ret void
11 F:
12         store int 1, int* %Q
13         %B = load int* %Q
14         call void %bar(int %B)
15         ret void
16 }
17