xref: /llvm-project/llvm/test/tools/llvm-reduce/remove-bbs-entry.ll (revision 023f24d8931267074aa5a60078dddc744187fcfc)
1; Test that llvm-reduce does not remove the entry block of functions.
2;
3; RUN: llvm-reduce --abort-on-invalid-reduction --delta-passes=basic-blocks --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
4; RUN: FileCheck %s < %t
5
6; CHECK-INTERESTINGNESS: foo
7
8; CHECK: add i32
9define i32 @foo() {
10uninteresting:
11  %a = add i32 0, 0
12  ret i32 0
13}
14
15