xref: /llvm-project/llvm/test/Transforms/GVN/basic.ll (revision 3528e63d89305907b3d6e0f59f7b03b94a12dacc)
1; RUN: opt < %s -passes=gvn -S | FileCheck %s
2
3define i32 @main() {
4block1:
5	%z1 = bitcast i32 0 to i32
6	br label %block2
7block2:
8  %z2 = bitcast i32 0 to i32
9  ret i32 %z2
10}
11
12; CHECK: define i32 @main() {
13; CHECK-NEXT: block1:
14; CHECK-NEXT:   ret i32 0
15; CHECK-NEXT: }
16