[llvm] ea6e8d4 - [LICM] Don't generate crash dialog for missing MSSA
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 02:59:42 PST 2023
Author: Nikita Popov
Date: 2023-01-23T11:59:32+01:00
New Revision: ea6e8d4f5913e89a1a6951f017b6509ed32c6be9
URL: https://github.com/llvm/llvm-project/commit/ea6e8d4f5913e89a1a6951f017b6509ed32c6be9
DIFF: https://github.com/llvm/llvm-project/commit/ea6e8d4f5913e89a1a6951f017b6509ed32c6be9.diff
LOG: [LICM] Don't generate crash dialog for missing MSSA
This is a user error, so we should not be asking them to report
an issue.
Added:
Modified:
llvm/lib/Transforms/Scalar/LICM.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp
index cb8d5f1b187e9..2865dece8723b 100644
--- a/llvm/lib/Transforms/Scalar/LICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LICM.cpp
@@ -265,7 +265,8 @@ struct LegacyLICMPass : public LoopPass {
PreservedAnalyses LICMPass::run(Loop &L, LoopAnalysisManager &AM,
LoopStandardAnalysisResults &AR, LPMUpdater &) {
if (!AR.MSSA)
- report_fatal_error("LICM requires MemorySSA (loop-mssa)");
+ report_fatal_error("LICM requires MemorySSA (loop-mssa)",
+ /*GenCrashDiag*/false);
// For the new PM, we also can't use OptimizationRemarkEmitter as an analysis
// pass. Function analyses need to be preserved across loop transformations
@@ -301,7 +302,8 @@ PreservedAnalyses LNICMPass::run(LoopNest &LN, LoopAnalysisManager &AM,
LoopStandardAnalysisResults &AR,
LPMUpdater &) {
if (!AR.MSSA)
- report_fatal_error("LNICM requires MemorySSA (loop-mssa)");
+ report_fatal_error("LNICM requires MemorySSA (loop-mssa)",
+ /*GenCrashDiag*/false);
// For the new PM, we also can't use OptimizationRemarkEmitter as an analysis
// pass. Function analyses need to be preserved across loop transformations
More information about the llvm-commits
mailing list