1 ; RUN: opt -S -basicaa -objc-arc -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
12 ; CHECK-NEXT: %s = load i8** @x
15 define i8* @foo(i32 %n) nounwind {
18 %0 = tail call i8* @objc_retain(i8* %s) nounwind