[PATCH] D34080: [ThinLTO] Add dump-summary command to llvm-lto2 tool

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 10 07:55:00 PDT 2017


tejohnson added inline comments.


================
Comment at: test/tools/llvm-lto2/X86/dump-summary.ll:2
+; RUN: opt -module-summary %s -o %t.o
+; RUN: llvm-lto2 dump-summary %t.o | egrep 'Linkage:\s+0'
+; RUN: llvm-lto2 dump-summary %t.o | egrep 'Live:\s+false'
----------------
Rather than repeating this command and piping through egrep, you should run once and pipe through FileCheck (see the other tests in this directory for examples). I.e. pipe through "FileCheck %s", then have several lines prefixed by "CHECK: "  to look for the expected output. E.g.:

CHECK: NotEligibleToImport: false



https://reviews.llvm.org/D34080





More information about the llvm-commits mailing list