1 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
2 ; RUN: opt -S -passes=globalopt < %s | FileCheck %s
4 ; The global is stored once through a trivial GEP instruction (rather than
5 ; GEP constant expression) here. We should still be able to optimize it.
9 @g = internal unnamed_addr global i32 undef
13 define void @store() {
14 ; CHECK-LABEL: @store(
15 ; CHECK-NEXT: ret void
17 store i32 1, ptr @g, align 4
23 ; CHECK-NEXT: call fastcc void @store()
24 ; CHECK-NEXT: ret i32 1
26 call fastcc void @store()