1 ; RUN: opt -S --passes="default<O3>" < %s | FileCheck %s
3 define dso_local i32 @g0(i32 noundef %x) local_unnamed_addr {
5 %call = tail call fastcc i32 @f(i32 noundef %x, ptr noundef nonnull @p0)
9 define internal fastcc i32 @f(i32 noundef %x, ptr nocapture noundef readonly %p) noinline {
11 %call = tail call i32 %p(i32 noundef %x)
12 %add = add nsw i32 %call, %x
16 define dso_local i32 @g1(i32 noundef %x) {
18 %call = tail call fastcc i32 @f(i32 noundef %x, ptr noundef nonnull @p1)
22 declare i32 @p0(i32 noundef)
23 declare i32 @p1(i32 noundef)
25 ;; Tests that `f` has been fully specialize and it didn't cause compiler crash.
26 ;; CHECK-DAG: f.specialized.1
27 ;; CHECK-DAG: f.specialized.2