[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / tools / llvm-reduce / remove-args-used-by-ret.ll
blob8d1db8c1a6a52f1e7d690d5c9bc69f4bef654b90
1 ; RUN: llvm-reduce --delta-passes=arguments --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t
2 ; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
4 ; We can't drop arguments if they are used by terminator instructions.
6 define i32 @t(i32 %a0, i32 %a1, i32 %a2) {
7 ; CHECK-ALL-LABEL: @t
8 ; CHECK-FINAL-NOT: %a1
10 ; CHECK-INTERESTINGNESS: ret i32
11 ; CHECK-FINAL: ret i32 undef
13   ret i32 %a1