[PATCH] D86657: Add new hidden option -print-crash-IR that prints out IR that caused opt pipeline to crash
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 30 14:58:15 PDT 2021
aeubanks added a comment.
In D86657#3034561 <https://reviews.llvm.org/D86657#3034561>, @jamieschmeiser wrote:
> I think I am getting confused with llvm-extract --func=<function> which will extract what is needed for a function from a module IR. However, one could likely use that to get an IR with the necessary addition declarations and then substitute in the IR for the function using this option. I wonder if it might be possible to use the code in llvm-extract to do that automatically? Something to think about...
llvm-extract is a bit finnicky, it basically relies on GlobalDCE and has to change function linkage in order to preserve functions.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D86657/new/
https://reviews.llvm.org/D86657
More information about the llvm-commits
mailing list