projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca77aa0
)
[NFC] OpenMPOpt: add a statistic for num of parallel regions deleted
author
Roman Lebedev
<lebedev.ri@gmail.com>
Fri, 12 Jun 2020 15:11:34 +0000
(18:11 +0300)
committer
Roman Lebedev
<lebedev.ri@gmail.com>
Fri, 12 Jun 2020 20:10:53 +0000
(23:10 +0300)
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index
63eddbd
..
03be412
100644
(file)
--- 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
@@
private:
CGUpdater.removeCallSite(*CI);
CI->eraseFromParent();
Changed = true;
+ ++NumOpenMPParallelRegionsDeleted;
return true;
};