aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/tools/llvm-reduce/remove-bbs-entry.ll
blob: 2bcb49ef9c1ffe4c4abd9afed9ee0ee236795183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
; Test that llvm-reduce does not remove the entry block of functions.
;
; 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
; RUN: FileCheck %s < %t

; CHECK-INTERESTINGNESS: foo

; CHECK: add i32
define i32 @foo() {
uninteresting:
  %a = add i32 0, 0
  ret i32 0
}