annotate llvm/test/Transforms/GlobalOpt/iterate.ll @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
1 ; RUN: opt < %s -passes=globalopt -S | FileCheck %s
150
anatofuz
parents:
diff changeset
2 ; CHECK-NOT: %G
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 @G = internal global i32 0 ; <i32*> [#uses=1]
anatofuz
parents:
diff changeset
5 @H = internal global { i32* } { i32* @G } ; <{ i32* }*> [#uses=1]
anatofuz
parents:
diff changeset
6
anatofuz
parents:
diff changeset
7 define i32 @loadg() {
anatofuz
parents:
diff changeset
8 %G = load i32*, i32** getelementptr ({ i32* }, { i32* }* @H, i32 0, i32 0) ; <i32*> [#uses=1]
anatofuz
parents:
diff changeset
9 %GV = load i32, i32* %G ; <i32> [#uses=1]
anatofuz
parents:
diff changeset
10 ret i32 %GV
anatofuz
parents:
diff changeset
11 }