brintos

brintos / llvm-project-archived public Read only

0
0
Text · 307 B · dd12e39 Raw
12 lines · plain
1; RUN: opt < %s -passes=globalopt -S | FileCheck %s2; This is a harder case to delete as the GEP has a variable index.3 4; CHECK-NOT: internal5@G = internal global [4 x i32] zeroinitializer6 7define void @foo(i32 %X) {8	%Ptr = getelementptr [4 x i32], ptr @G, i32 0, i32 %X9	store i32 1, ptr %Ptr10	ret void11}12