Changeset View
Changeset View
Standalone View
Standalone View
llvm/test/tools/llvm-reduce/remove-invoked-functions.ll
; RUN: llvm-reduce --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t | ; RUN: llvm-reduce --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 | ; RUN: cat %t | FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL %s | ||||
; CHECK-INTERESTINGNESS: define i32 @maybe_throwing_callee( | ; CHECK-INTERESTINGNESS: define i32 @maybe_throwing_callee( | ||||
; CHECK-FINAL: define i32 @maybe_throwing_callee() | ; CHECK-FINAL: define i32 @maybe_throwing_callee() | ||||
define i32 @maybe_throwing_callee(i32 %arg) { | define i32 @maybe_throwing_callee(i32 %arg) { | ||||
; CHECK-ALL: call void @thrown() | ; CHECK-ALL: call void @thrown() | ||||
; CHECK-INTERESTINGNESS: ret i32 | ; CHECK-INTERESTINGNESS: ret i32 | ||||
; CHECK-FINAL: ret i32 undef | ; CHECK-FINAL: ret i32 0 | ||||
call void @thrown() | call void @thrown() | ||||
ret i32 %arg | ret i32 %arg | ||||
} | } | ||||
; CHECK-ALL: declare void @did_not_throw(i32) | ; CHECK-ALL: declare void @did_not_throw(i32) | ||||
declare void @did_not_throw(i32) | declare void @did_not_throw(i32) | ||||
; CHECK-ALL: declare void @thrown() | ; CHECK-ALL: declare void @thrown() | ||||
Show All 38 Lines |