commit | e76b95dac1198aa6e81b17916a1bf1ffcbb8655a | [log] [tgz] |
---|---|---|
author | Jessica Paquette <jpaquette@apple.com> | Fri Aug 31 20:19:41 2018 +0000 |
committer | Jessica Paquette <jpaquette@apple.com> | Fri Aug 31 20:19:41 2018 +0000 |
tree | 54a88e884f5a777a7b9c4b257f04ef3b99758797 | |
parent | c523f7a1225edde38d7e84988e811ae73c74ca36 [diff] |
[NFC] Pre-calculate function IR counts in size remarks. Size remarks are slow due to lots of recalculation of the module. Pre-calculate the module size and initial function size for a remark. Use deltas calculated using the less-expensive function IR count to update the module counts for Function passes. 1/6 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341245 91177308-0d34-0410-b5e6-96231b3b80d8