[NewPM] Fix -print-changed when a -filter-print-funcs function is removed
authorArthur Eubanks <aeubanks@google.com>
Fri, 9 Apr 2021 21:13:29 +0000 (14:13 -0700)
committerArthur Eubanks <aeubanks@google.com>
Mon, 12 Apr 2021 18:55:17 +0000 (11:55 -0700)
commitbe00edfee55ee00b76a113e825d6614302abf983
tree24638b38852881209eca561ff8b5e39f41c3a38c
parent0788cdf2e3e9fa181e6cb5f13e4a6c1c17e68627
[NewPM] Fix -print-changed when a -filter-print-funcs function is removed

-filter-print-funcs -print-changed was crashing after the filter func
was removed by a pass with
  Assertion failed: After.find("*** IR Dump") == 0 && "Unexpected banner format."
We weren't printing the banner because when we have -filter-print-funcs,
we print each function separately, letting the print function filter out
unwanted functions.

Reviewed By: jamieschmeiser

Differential Revision: https://reviews.llvm.org/D100237
llvm/lib/Passes/StandardInstrumentations.cpp
llvm/test/Other/print-changed-deleted.ll [new file with mode: 0644]