1 ; RUN: opt < %s -ipsccp -S | FileCheck %s
3 ; This transformation is safe for atomic loads and stores; check that it works.
5 @G = internal global i32 17
6 @C = internal constant i32 222
9 %V = load atomic i32* @G seq_cst, align 4
10 %C = icmp eq i32 %V, 17
11 br i1 %C, label %T, label %F
13 store atomic i32 17, i32* @G seq_cst, align 4
16 store atomic i32 123, i32* @G seq_cst, align 4
19 ; CHECK: define i32 @test1
24 %V = load atomic i32* @C seq_cst, align 4
28 ; CHECK: define i32 @test2