23 lines · plain
1; RUN: llvm-reduce --abort-on-invalid-reduction --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS --test-arg %s --test-arg --input-file %s -o %t 2>&1 | FileCheck %s --check-prefix=CHECK-LOG2; RUN: FileCheck --check-prefixes=CHECK-FINAL --input-file=%t %s3 4; CHECK-INTERESTINGNESS: ret i325; CHECK-FINAL: ret i32 06 7; Test that we don't invoke the oracle more than necessary (e.g. check the8; oracle then perform some failable/redundant reduction, as opposed to check if9; a reduction will fail/be redundant before invoking the oracle). This prevents10; overestimation of the number of possible reductions and the number of times we11; attempt to reduce.12 13; IR passes14; CHECK-LOG: Saved new best reduction15; Module data16; CHECK-LOG: Saved new best reduction17; SimplifyCFG18; CHECK-LOG: Saved new best reduction19; CHECK-LOG-NOT: Saved new best reduction20 21define i32 @f() {22 ret i32 023}