OSDN Git Service

IR: Skip -print-*-all after -print-*
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 11 Jul 2018 23:30:25 +0000 (23:30 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 11 Jul 2018 23:30:25 +0000 (23:30 +0000)
commit15753b03821edcd4d094d20c2d0b7bf703244870
tree2e4eaf63dfee8a06f930507836069c7ba76058fe
parent87c3b54a36280798828e43f4d4bde0fc3b70482a
IR: Skip -print-*-all after -print-*

This changes `-print-*` from transformation passes to analysis passes so
that `-print-after-all` and `-print-before-all` don't trigger.  This
avoids some redundant output.

Patch by Son Tuan Vu!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336869 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/IRPrintingPasses.cpp
test/Other/printer.ll [new file with mode: 0644]