[PATCH] D86657: Add new hidden option -print-on-crash that prints out IR that caused opt pipeline to crash

Jamie Schmeiser via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 4 07:24:36 PDT 2021


jamieschmeiser updated this revision to Diff 376887.
jamieschmeiser retitled this revision from "Add new hidden option -print-crash-IR that prints out IR that caused opt pipeline to crash" to "Add new hidden option -print-on-crash that prints out IR that caused opt pipeline to crash".
jamieschmeiser added a comment.

Added the usual filtering options (filter-passes and filter-print-func) with uninteresting passes being saved with a message that they were filtered out.  This should speed up things significantly when they are used.  If the user isn't aware of the name of the crashing pass, they can use -filter-passes=blah (where blah doesn't exist) and they will get a message saying that the pass was filtered out.  They can discover the name from that message and then rerun it with -filter-passes.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86657/new/

https://reviews.llvm.org/D86657

Files:
  llvm/include/llvm/Passes/StandardInstrumentations.h
  llvm/lib/Passes/PassBuilder.cpp
  llvm/lib/Passes/PassRegistry.def
  llvm/lib/Passes/StandardInstrumentations.cpp
  llvm/test/Other/print-on-crash.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86657.376887.patch
Type: text/x-patch
Size: 9617 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211004/5d3e3d60/attachment.bin>


More information about the llvm-commits mailing list