[llvm] 55eb714 - [NFC] OpenMPOpt: add a statistic for num of parallel regions deleted
Roman Lebedev via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 12 13:13:41 PDT 2020
Author: Roman Lebedev
Date: 2020-06-12T23:10:53+03:00
New Revision: 55eb714a0e8dd4e83f987979de823ce8e8bbd2f0
URL: https://github.com/llvm/llvm-project/commit/55eb714a0e8dd4e83f987979de823ce8e8bbd2f0
DIFF: https://github.com/llvm/llvm-project/commit/55eb714a0e8dd4e83f987979de823ce8e8bbd2f0.diff
LOG: [NFC] OpenMPOpt: add a statistic for num of parallel regions deleted
Added:
Modified:
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index 63eddbda94e7..03be412cd24b 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -39,6 +39,8 @@ static cl::opt<bool> DisableOpenMPOptimizations(
STATISTIC(NumOpenMPRuntimeCallsDeduplicated,
"Number of OpenMP runtime calls deduplicated");
+STATISTIC(NumOpenMPParallelRegionsDeleted,
+ "Number of OpenMP parallel regions deleted");
STATISTIC(NumOpenMPRuntimeFunctionsIdentified,
"Number of OpenMP runtime functions identified");
STATISTIC(NumOpenMPRuntimeFunctionUsesIdentified,
@@ -194,6 +196,7 @@ struct OpenMPOpt {
CGUpdater.removeCallSite(*CI);
CI->eraseFromParent();
Changed = true;
+ ++NumOpenMPParallelRegionsDeleted;
return true;
};
More information about the llvm-commits
mailing list