aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/Analysis/LazyCallGraph/replace-libcall.ll
blob: 372aade958acdf6a1ab9ddceb0a9f47a5bfa84a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
; RUN: opt -passes=inline,argpromotion < %s -S | FileCheck %s

; Make sure we update the list of libcalls when we replace a libcall.

; CHECK: define {{.*}}@a

define void @a() {
entry:
  %call = call float @strtof(ptr noundef null, ptr noundef null)
  ret void
}

define internal float @strtof(ptr noundef %0, ptr noundef %1) nounwind {
entry:
  ret float 0.0
}