[PATCH] D30059: Refactor InlinCost.cpp in preparation for estimated speedup heuristic.

Easwaran Raman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 20:01:22 PST 2017


eraman added a comment.

In https://reviews.llvm.org/D30059#679384, @chandlerc wrote:

> Can you split this into separate patches that do a single refactoring? (Especially considering you have the breakdown in your descirption...) That would make it easier to review for me.


Ok, will do.



================
Comment at: lib/Analysis/InlineCost.cpp:402-404
+void CallAnalyzer::accumulateCost(int InstructionCost) {
+  Cost += InstructionCost;
+}
----------------
chandlerc wrote:
> Of all of these, this one seems the one that doesn't really make sense on its own. I'd rather this be part of the change where it starts to make sense rather than a seemingly bad code smell being added because of some subsequent change.
Ok


https://reviews.llvm.org/D30059





More information about the llvm-commits mailing list