[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
Thu Sep 30 06:55:30 PDT 2021


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

Regarding always printing the module, I'm not sure that is desirable.  The
problematic IR may be very large and the option respects -print-module-scope
so the module IR can be obtained.  There are also tools for creating a fleshed-out IR
from the IR for a function.


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.376190.patch
Type: text/x-patch
Size: 6928 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210930/41c85986/attachment.bin>


More information about the llvm-commits mailing list