This change passes down ACT to SampleProfileLoader for the new PM. Also remove the default value for SampleProfileLoader class as it is not used.
Details
Diff Detail
- Build Status
Buildable 10152 Build 10152: arc lint + arc unit
Event Timeline
lib/Transforms/IPO/SampleProfile.cpp | ||
---|---|---|
150 | Name = SampleProfileFile ? Looking below, this is a separate refactoring. Perhaps separate the two out? Otherwise, at least make the desccription clear that there are two different refactoring. | |
753 | Any reason why you want a named temporary? | |
1486 | Since ACT is an immutable pass that doesn't require the module, you can move the initialization of ACT to the constructor of the legacy pass. | |
1513 | you don't need the std::function here. Just use auto. |
LGTM
lib/Transforms/IPO/SampleProfile.cpp | ||
---|---|---|
1486 | (Dehao explained offline why this won't work) |
Name = SampleProfileFile ? Looking below, this is a separate refactoring. Perhaps separate the two out? Otherwise, at least make the desccription clear that there are two different refactoring.