13 lines · plain
1RUN: llvm-remarkutil size-diff %p/Inputs/1-func-1-instr-1-stack.yaml %p/Inputs/1-func-2-instr-2-stack.yaml --parser=yaml | FileCheck -strict-whitespace %s --check-prefix=INCREASE2RUN: llvm-remarkutil size-diff %p/Inputs/1-func-2-instr-2-stack.yaml %p/Inputs/1-func-1-instr-1-stack.yaml --parser=yaml | FileCheck -strict-whitespace %s --check-prefix=DECREASE3 4; Test a size increase/decrease of one instruction + 1 stack byte.5 6; INCREASE: == > func0, 1 instrs, 1 stack B7; INCREASE-DAG: instruction count: 1 (100.00%)8; INCREASE-NEXT: stack byte usage: 1 (100.00%)9 10; DECREASE: == < func0, -1 instrs, -1 stack B11; DECREASE-DAG: instruction count: -1 (-50.00%)12; DECREASE-NEXT: stack byte usage: -1 (-50.00%)13