diff options
author | Mingming Liu <mingmingl@google.com> | 2022-06-17 08:49:04 -0700 |
---|---|---|
committer | Mingming Liu <mingmingl@google.com> | 2022-06-22 10:11:40 -0700 |
commit | 67dc8021a1796cc84bd4c1e5983605323188ce9d (patch) | |
tree | dd34ee5bf98f36a731c235b53cbbef14425f77e0 /polly | |
parent | 30bdfacf5db26b709508d0526bbebf62ac034888 (diff) | |
download | llvm-67dc8021a1796cc84bd4c1e5983605323188ce9d.zip llvm-67dc8021a1796cc84bd4c1e5983605323188ce9d.tar.gz llvm-67dc8021a1796cc84bd4c1e5983605323188ce9d.tar.bz2 |
[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.cpp | 4 | ||||
-rw-r--r-- | polly/lib/Analysis/ScopInfo.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp index 9d7b4c4..e22f8bd 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 ca81d43..d8196c3 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++; |