mirror of
https://github.com/llvm/llvm-project.git
synced 2025-05-01 14:06:07 +00:00

Add reduction to set operands to default values Reviewed By: aeubanks Differential Revision: https://reviews.llvm.org/D108903
13 lines
381 B
LLVM
13 lines
381 B
LLVM
; 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
|
|
; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s
|
|
|
|
define i32 @t(i32 %a0) {
|
|
; CHECK-ALL-LABEL: @t
|
|
; CHECK-FINAL: () {
|
|
;
|
|
; CHECK-INTERESTINGNESS: ret i32
|
|
; CHECK-FINAL: ret i32 42
|
|
|
|
ret i32 42
|
|
}
|