mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
cf19d2a645
- We lacked a short unique identifier for a statistics, so I renamed the current "Name" field that just contained the DEBUG_TYPE name of the current file to DebugType and added a new "Name" field that contains the C++ identifier of the statistic variable. - Add the -stats-json option which outputs statistics in json format. Differential Revision: http://reviews.llvm.org/D20995 llvm-svn: 272826
17 lines
647 B
LLVM
17 lines
647 B
LLVM
; RUN: opt < %s -o /dev/null -instsimplify -stats -stats-json 2>&1 | FileCheck %s --check-prefix=JSON
|
|
; RUN: opt < %s -o /dev/null -instsimplify -stats -stats-json -info-output-file %t && FileCheck %s < %t --check-prefix=JSON
|
|
; RUN: opt < %s -o /dev/null -instsimplify -stats 2>&1 | FileCheck %s --check-prefix=DEFAULT
|
|
; RUN: opt < %s -o /dev/null -instsimplify -stats -info-output-file %t && FileCheck %s < %t --check-prefix=DEFAULT
|
|
; REQUIRES: asserts
|
|
|
|
; JSON: {
|
|
; JSON: "instsimplify.NumSimplified": 1
|
|
; JSON: }
|
|
|
|
; DEFAULT: 1 instsimplify - Number of redundant instructions removed
|
|
|
|
define i32 @foo() {
|
|
%res = add i32 5, 4
|
|
ret i32 %res
|
|
}
|