[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)
commitf2a202ce7a2594e07fd6735c2f6cf25b3a749916
tree28cc22e356381105e66a062c4b395e1cac93a23c
parent04cbe721dae56eef0bd8ae26426395f53ecb72c2
[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

llvm-svn: 341245
llvm/lib/IR/LegacyPassManager.cpp