[all-commits] [llvm/llvm-project] 24239e: Add new hidden option -print-on-crash that prints ...
Jamie Schmeiser via All-commits
all-commits at lists.llvm.org
Mon May 23 15:39:36 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24239e246c78c48dabdc042e5c40f40b2a28947b
https://github.com/llvm/llvm-project/commit/24239e246c78c48dabdc042e5c40f40b2a28947b
Author: Jamie Schmeiser <schmeise at ca.ibm.com>
Date: 2022-05-23 (Mon, 23 May 2022)
Changed paths:
M llvm/include/llvm/Passes/StandardInstrumentations.h
M llvm/lib/Passes/PassBuilder.cpp
M llvm/lib/Passes/PassRegistry.def
M llvm/lib/Passes/StandardInstrumentations.cpp
A llvm/test/Other/print-on-crash.ll
Log Message:
-----------
Add new hidden option -print-on-crash that prints out IR that caused opt pipeline to crash
A new hidden option -print-on-crash that prints the IR as it was upon entering
the last pass when there is a crash.
The IR is saved in its print form before each pass is started and a
signal handler is registered. If the compilation crashes, the signal
handler will print the saved IR to dbgs(). This option
can be modified using -print-module-scope to get the IR for the complete
module. Note that this option only works with the new pass manager.
Reviewed By: yrouban
Differential Revision: https://reviews.llvm.org/D86657
More information about the All-commits
mailing list