1 ; RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=functions --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2 ; RUN: FileCheck --check-prefixes=CHECK-FINAL --input-file=%t %s
4 ; Test handling of ifunc. Make sure function reduction doesn't create
8 ; CHECK-INTERESTINGNESS: define void @no_ifunc_interesting
10 ; CHECK-FINAL: @ifunc1 = ifunc void (), ptr @has_ifunc
11 ; CHECK-FINAL: define void @no_ifunc_interesting() {
12 ; CHECK-FINAL-NOT: define
14 @ifunc1 = ifunc void (), ptr @has_ifunc
17 define ptr @has_ifunc() {
18 ret ptr inttoptr (i64 124 to ptr)
21 define void @no_ifunc_interesting() {
25 define void @no_ifunc_boring() {