[all-commits] [llvm/llvm-project] 128745: [PassManager] Add pretty stack entries before P->r...
Florian Hahn via All-commits
all-commits at lists.llvm.org
Wed Mar 9 05:01:54 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 128745cc2681c284bc6d0150a319673a6d6e8424
https://github.com/llvm/llvm-project/commit/128745cc2681c284bc6d0150a319673a6d6e8424
Author: Florian Hahn <flo at fhahn.com>
Date: 2022-03-09 (Wed, 09 Mar 2022)
Changed paths:
M llvm/include/llvm/IR/PassManager.h
M llvm/include/llvm/Transforms/Scalar/LoopPassManager.h
M llvm/lib/Analysis/CGSCCPassManager.cpp
M llvm/lib/IR/PassManager.cpp
M llvm/lib/Passes/PassBuilder.cpp
M llvm/lib/Passes/PassRegistry.def
M llvm/lib/Transforms/Scalar/LoopPassManager.cpp
A llvm/test/Other/crash-cgscc.ll
A llvm/test/Other/crash-function.ll
A llvm/test/Other/crash-loop.ll
A llvm/test/Other/crash-module.ll
Log Message:
-----------
[PassManager] Add pretty stack entries before P->run() call.
This patch adds PrettyStackEntries before running passes. The entries
include the pass name and the IR unit the pass runs on.
The information is used the print additional information when a pass
crashes, including the name and a reference to the IR unit on which it
crashed. This is similar to the behavior of the legacy pass manager.
The improved stack trace now includes:
Stack dump:
0. Program arguments: bin/opt -loop-vectorize -force-vector-width=4 crash.ll
1. Running pass 'ModuleToFunctionPassAdaptor' on module 'crash.ll'
2. Running pass 'LoopVectorizePass' on function '@a'
Reviewed By: aeubanks
Differential Revision: https://reviews.llvm.org/D120993
More information about the All-commits
mailing list