1 ; RUN: opt -S --passes="ipsccp<func-spec>" -force-specialization -funcspec-for-literal-constant < %s | FileCheck %s
2 define internal i32 @f(i32 %x, i32 %y) noinline {
7 %r = call i32 @f(i32 1, i32 1)
12 %r = call i32 @f(i32 1, i32 2)
16 ; Check that there are no specialisation of `f`: first parameter is deduced
17 ; to be a constant without the need for function specialisation and
18 ; the second parameter is unused.
20 ; CHECK-NOT: @f.specialized.