[Attributor][NFC] Replace the nested AAMap with a key pair
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 22 Apr 2020 02:34:39 +0000 (21:34 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Mon, 4 May 2020 03:10:47 +0000 (22:10 -0500)
commit14cb0bdf2b6ca0b7befbb07fe9f73dad5786f59b
tree5a3a47c2586eacc9bffbf754fdb36a7974ffbb4f
parent95e0d28b71e42c9b7cd77c96f728311981a021f6
[Attributor][NFC] Replace the nested AAMap with a key pair

No functional change is intended.

---

Single run of the Attributor module and then CGSCC pass (oldPM)
for SPASS/clause.c (~10k LLVM-IR loc):

Before:
```
calls to allocation functions: 512375 (362871/s)
temporary memory allocations: 98746 (69933/s)
peak heap memory consumption: 22.54MB
peak RSS (including heaptrack overhead): 106.78MB
total memory leaked: 269.10KB
```

After:
```
calls to allocation functions: 509833 (338534/s)
temporary memory allocations: 98902 (65671/s)
peak heap memory consumption: 18.71MB
peak RSS (including heaptrack overhead): 103.00MB
total memory leaked: 269.10KB
```

Difference:
```
calls to allocation functions: -2542 (-27042/s)
temporary memory allocations: 156 (1659/s)
peak heap memory consumption: -3.83MB
peak RSS (including heaptrack overhead): 0B
total memory leaked: 0B
```
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp