1 ; RUN: opt -S -basicaa -objc-arc-aa -gvn < %s | FileCheck %s
3 @x = common global i8* null, align 8
5 declare i8* @objc_retain(i8*)
7 ; GVN should be able to eliminate this redundant load, with ARC-specific
10 ; CHECK: define i8* @foo(i32 %n)
12 ; CHECK-NEXT: %s = load i8** @x
16 define i8* @foo(i32 %n) nounwind {
19 %0 = tail call i8* @objc_retain(i8* %s) nounwind