Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/polly
diff options
context:
space:
mode:
authorMingming Liu <mingmingl@google.com>2022-06-17 18:49:04 +0300
committerMingming Liu <mingmingl@google.com>2022-06-22 20:11:40 +0300
commit67dc8021a1796cc84bd4c1e5983605323188ce9d (patch)
treedd34ee5bf98f36a731c235b53cbbef14425f77e0 /polly
parent30bdfacf5db26b709508d0526bbebf62ac034888 (diff)
[Support] Change TrackingStatistic and NoopStatistic to use uint64_t instead of unsigned.
Binary size of `clang` is trivial; namely, numerical value doesn't change when measured in MiB, and `.data` section increases from 139Ki to 173 Ki. Differential Revision: https://reviews.llvm.org/D128070
Diffstat (limited to 'polly')
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp4
-rw-r--r--polly/lib/Analysis/ScopInfo.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index 9d7b4c44d4b8..e22f8bd41a1b 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -1885,7 +1885,7 @@ static void updateLoopCountStatistic(ScopDetection::LoopStats Stats,
if (!OnlyProfitable) {
NumLoopsInScop += Stats.NumLoops;
MaxNumLoopsInScop =
- std::max(MaxNumLoopsInScop.getValue(), (unsigned)Stats.NumLoops);
+ std::max(MaxNumLoopsInScop.getValue(), (uint64_t)Stats.NumLoops);
if (Stats.MaxDepth == 0)
NumScopsDepthZero++;
else if (Stats.MaxDepth == 1)
@@ -1903,7 +1903,7 @@ static void updateLoopCountStatistic(ScopDetection::LoopStats Stats,
} else {
NumLoopsInProfScop += Stats.NumLoops;
MaxNumLoopsInProfScop =
- std::max(MaxNumLoopsInProfScop.getValue(), (unsigned)Stats.NumLoops);
+ std::max(MaxNumLoopsInProfScop.getValue(), (uint64_t)Stats.NumLoops);
if (Stats.MaxDepth == 0)
NumProfScopsDepthZero++;
else if (Stats.MaxDepth == 1)
diff --git a/polly/lib/Analysis/ScopInfo.cpp b/polly/lib/Analysis/ScopInfo.cpp
index ca81d43703a9..d8196c34a051 100644
--- a/polly/lib/Analysis/ScopInfo.cpp
+++ b/polly/lib/Analysis/ScopInfo.cpp
@@ -2559,7 +2559,7 @@ void updateLoopCountStatistic(ScopDetection::LoopStats Stats,
NumScops++;
NumLoopsInScop += Stats.NumLoops;
MaxNumLoopsInScop =
- std::max(MaxNumLoopsInScop.getValue(), (unsigned)Stats.NumLoops);
+ std::max(MaxNumLoopsInScop.getValue(), (uint64_t)Stats.NumLoops);
if (Stats.MaxDepth == 0)
NumScopsDepthZero++;