[NFC] Pre-calculate loop IR counts in size remarks.
authorJessica Paquette <jpaquette@apple.com>
Fri, 31 Aug 2018 20:20:54 +0000 (20:20 +0000)
committerJessica Paquette <jpaquette@apple.com>
Fri, 31 Aug 2018 20:20:54 +0000 (20:20 +0000)
commit872a4c92b24d225cd781b9def6f02aa82b8a5da5
tree1fa576566c085dc0a60c72c7d02ee91d6c753b15
parent9eda13e9762659989e1ff6874cdf970e6f779f58
[NFC] Pre-calculate loop IR counts in size remarks.

Another commit reducing compile time in size remarks.

Cache the size of the module and loop, and update values based
off of deltas instead. Avoid recalculating the size of the
whole module whenever possible.

3/6

llvm-svn: 341247
llvm/lib/Analysis/LoopPass.cpp