OSDN Git Service

[NFC] Pre-calculate function IR counts in size remarks.
authorJessica Paquette <jpaquette@apple.com>
Fri, 31 Aug 2018 20:19:41 +0000 (20:19 +0000)
committerJessica Paquette <jpaquette@apple.com>
Fri, 31 Aug 2018 20:19:41 +0000 (20:19 +0000)
commite76b95dac1198aa6e81b17916a1bf1ffcbb8655a
tree54a88e884f5a777a7b9c4b257f04ef3b99758797
parentc523f7a1225edde38d7e84988e811ae73c74ca36
[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
lib/IR/LegacyPassManager.cpp