This patch adds per-function size information remarks. Previously, passing -Rpass-analysis=size-info would only give you per-module changes.
By adding the ability to do this per-function, it's easier to see which functions contributed the most to size changes.
(Note that we still have a random function name attached to the remark which is kind of misleading. Since we want to emit remarks for deleted functions as well, we can't use the function we're emitting the remark for in the OptimizationRemarkAnalysis. I put a FIXME in for this, but if there's a better way around it, it'd be nice to avoid the issue entirely.)
Why not FunctionToInstrCount[F.getName().str()] = std::pair<unsigned, unsigned>(0, FnSize); as used previously in initSizeRemarkInfo?