1 ; RUN: opt -S -inferattrs -basic-aa -licm < %s | FileCheck %s
3 define void @test(i64* noalias %loc, i8* noalias %a) {
10 %res = call i64 @strlen(i8* %a)
11 store i64 %res, i64* %loc
15 ; CHECK: declare i64 @strlen(i8* nocapture) #0
16 ; CHECK: attributes #0 = { argmemonly mustprogress nofree nounwind readonly willreturn }
17 declare i64 @strlen(i8*)