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

Jamie Schmeiser via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 1 06:37:27 PDT 2020


jamieschmeiser updated this revision to Diff 289150.
jamieschmeiser added a comment.

Respond to review comments: use mutex to protect building of vector of crash printers.
Create a global vector of crash printers that the signal handler uses to report the IRs in the event of a crash.
Adding a crash printer and removing it from the vector is protected using mutex locking.

Respond to review comments:  change test to use not --crash and make it check for part of IR.


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.289150.patch
Type: text/x-patch
Size: 7432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200901/9b2e7fe8/attachment.bin>


More information about the llvm-commits mailing list