[PATCH] D74813: [RFC] Add hash of block contents to function block names
Alex Borcan via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 22 17:43:26 PST 2020
alexbdv added a comment.
@dexonsmith I did a benchmark with the worst case example I can come up with - 1000 regular functions and 1000 blocks : https://paste.ofcode.org/CFU6b46nuAA6ymxUEpkzka
I didn't manage to measure any performance decrease (the performance decrease was within the noise of repeated runs) - so seems the hashing is insignificant compile-time-wise even in worst case scenario (where most of the code is in function blocks).
And here is the actual text that is being hashed - the textual representation of the AST, not the IR: https://paste.ofcode.org/bfMzhbvHz9HRT7mVMe48Mx
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74813/new/
https://reviews.llvm.org/D74813
More information about the cfe-commits
mailing list