Split opt-remark YAML and opt output testing on this test

This prepares for https://reviews.llvm.org/D33514

llvm-svn: 312544
This commit is contained in:
Adam Nemet 2017-09-05 18:03:39 +00:00
parent 33caeadd90
commit 9c35f6383b
1 changed files with 5 additions and 2 deletions

View File

@ -1,8 +1,11 @@
; RUN: opt < %s -gvn -o /dev/null -pass-remarks-output=%t -S -pass-remarks=gvn \
; RUN: opt < %s -gvn -o /dev/null -S -pass-remarks=gvn -pass-remarks-missed=gvn \
; RUN: 2>&1 | FileCheck %s
; RUN: opt < %s -gvn -o /dev/null -pass-remarks-output=%t -S
; RUN: cat %t | FileCheck -check-prefix=YAML %s
; RUN: opt < %s -aa-pipeline=basic-aa -passes=gvn -o /dev/null -pass-remarks-output=%t -S -pass-remarks=gvn \
; RUN: opt < %s -aa-pipeline=basic-aa -passes=gvn -o /dev/null -S -pass-remarks=gvn -pass-remarks-missed=gvn \
; RUN: 2>&1 | FileCheck %s
; RUN: opt < %s -aa-pipeline=basic-aa -passes=gvn -o /dev/null -pass-remarks-output=%t -S
; RUN: cat %t | FileCheck -check-prefix=YAML %s
; CHECK: remark: <unknown>:0:0: load of type i32 eliminated{{$}}