]> granicus.if.org Git - llvm/commitdiff
[Remarks][NFC] Improve testing and documentation of -foptimization-record-passes
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 14 Jun 2019 21:38:57 +0000 (21:38 +0000)
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>
Fri, 14 Jun 2019 21:38:57 +0000 (21:38 +0000)
This adds:

* documentation to the user manual
* nicer error message
* test for the error case
* test for the gold plugin

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363463 91177308-0d34-0410-b5e6-96231b3b80d8

test/tools/gold/X86/opt-remarks.ll

index 548f228d28d5a15dbea35d7d3eda7853feee6267..4f8ae2c843c8b35c188b29c0a3e5a44b97524b06 100644 (file)
@@ -2,9 +2,11 @@
 ; RUN: llvm-as %s -o %t.o
 ; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext -shared \
 ; RUN:   -plugin-opt=save-temps \
+; RUN:    -plugin-opt=opt-remarks-passes=inline \
 ; RUN:    -plugin-opt=opt-remarks-filename=%t.yaml %t.o -o %t2.o 2>&1
 ; RUN: llvm-dis %t2.o.0.4.opt.bc -o - | FileCheck %s
 ; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext -shared \
+; RUN:    -plugin-opt=opt-remarks-passes=inline \
 ; RUN:    -plugin-opt=opt-remarks-with-hotness \
 ; RUN:   -plugin-opt=opt-remarks-filename=%t.hot.yaml %t.o -o %t2.o 2>&1
 ; RUN: cat %t.yaml | FileCheck %s -check-prefix=YAML