brintos

brintos / llvm-project-archived public Read only

0
0
Text · 659 B · 72e2e5f Raw
17 lines · plain
1; RUN: opt < %s -o /dev/null -p=instsimplify -stats -stats-json 2>&1 | FileCheck %s --check-prefix=JSON2; RUN: opt < %s -o /dev/null -p=instsimplify -stats -stats-json -info-output-file %t && FileCheck %s < %t --check-prefix=JSON3; RUN: opt < %s -o /dev/null -p=instsimplify -stats 2>&1 | FileCheck %s --check-prefix=DEFAULT4; RUN: opt < %s -o /dev/null -p=instsimplify -stats -info-output-file %t && FileCheck %s < %t --check-prefix=DEFAULT5; REQUIRES: asserts6 7; JSON: {8; JSON-DAG:   "instsimplify.NumSimplified": 19; JSON: }10 11; DEFAULT: 1 instsimplify - Number of redundant instructions removed12 13define i32 @foo() {14  %res = add i32 5, 415  ret i32 %res16}17