This follows the template used in GlobalDCE
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This patch is nice. Just one minor comment. After that, LGTM.
lib/Transforms/IPO/PartialInlining.cpp | ||
---|---|---|
33 | This one can be removed, no? |
Comment Actions
There's always the tradeoff between:
- using an Impl object as you did
- staticizing the member variables in order to share code them between old and new PM.
I'd prefer 2) in this case, because there's only one member variable, but I have no strong opinions about that.
With that in mind, I don't think it's worth rewriting this patch to use the other approach, as the boilerplate introduced is very little.
Comment Actions
I don't have a strong opinion. As you say, there is very little bolierplate and I'll keep this version.
This one can be removed, no?