diff options
author | Johannes Doerfert <johannes@jdoerfert.de> | 2020-04-30 12:12:22 -0500 |
---|---|---|
committer | Johannes Doerfert <johannes@jdoerfert.de> | 2020-05-03 22:01:51 -0500 |
commit | 95e0d28b71e42c9b7cd77c96f728311981a021f6 (patch) | |
tree | 8fedb94e1ceebedb2b44ba1137bc92bd5c9ad318 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 231026a508eacad3a9bab98954194287b8fcd412 (diff) | |
download | llvm-95e0d28b71e42c9b7cd77c96f728311981a021f6.zip llvm-95e0d28b71e42c9b7cd77c96f728311981a021f6.tar.gz llvm-95e0d28b71e42c9b7cd77c96f728311981a021f6.tar.bz2 |
[Attributor] Remember only necessary dependences
Before we eagerly put dependences into the QueryMap as soon as we
encountered them (via `Attributor::getAAFor<>` or
`Attributor::recordDependence`). Now we will wait to see if the
dependence is useful, that is if the target is not already in a fixpoint
state at the end of the update. If so, there is no need to record the
dependence at all.
Due to the abstraction via `Attributor::updateAA` we will now also treat
the very first update (during attribute creation) as we do subsequent
updates.
Finally this resolves the problematic usage of QueriedNonFixAA.
---
Single run of the Attributor module and then CGSCC pass (oldPM)
for SPASS/clause.c (~10k LLVM-IR loc):
Before:
```
calls to allocation functions: 554675 (389245/s)
temporary memory allocations: 101574 (71280/s)
peak heap memory consumption: 28.46MB
peak RSS (including heaptrack overhead): 116.26MB
total memory leaked: 269.10KB
```
After:
```
calls to allocation functions: 512465 (345559/s)
temporary memory allocations: 98832 (66643/s)
peak heap memory consumption: 22.54MB
peak RSS (including heaptrack overhead): 106.58MB
total memory leaked: 269.10KB
```
Difference:
```
calls to allocation functions: -42210 (-727758/s)
temporary memory allocations: -2742 (-47275/s)
peak heap memory consumption: -5.92MB
peak RSS (including heaptrack overhead): 0B
total memory leaked: 0B
```
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions