reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
    1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
; RUN: opt -S -inferattrs -basicaa -licm < %s | FileCheck %s

define void @test(i64* noalias %loc, i8* noalias %a) {
; CHECK-LABEL: @test
; CHECK: @strlen
; CHECK-LABEL: loop:
  br label %loop

loop:
  %res = call i64 @strlen(i8* %a)
  store i64 %res, i64* %loc
  br label %loop
}

; CHECK: declare i64 @strlen(i8* nocapture) #0
; CHECK: attributes #0 = { argmemonly nofree nounwind readonly }
declare i64 @strlen(i8*)