This pass is supposed to reduce the size of the IR for compile time
purpose. We should run it ASAP.
Details
Diff Detail
Event Timeline
lib/Transforms/IPO/PassManagerBuilder.cpp | ||
---|---|---|
410 | Does the same concern apply to ThinLTO (want to preserve them for inlining later on as in LTO)? If not, why? |
lib/Transforms/IPO/PassManagerBuilder.cpp | ||
---|---|---|
410 | Clang will set PrepareForLTO even when -flto=thin. But I'm not sure if it is a good thing, we may want to distinguish between the two so it seems better to me to not rely on PrepareForLTO in ThinLTO mode. |
LGTM
lib/Transforms/IPO/PassManagerBuilder.cpp | ||
---|---|---|
410 | Ah, I had forgotten that PrepareForLTO included all -flto settings. Now that we have PrepareForThinLTO I like the idea of separating them. Probably should then change PrepareForLTO to PrepareForFullLTO to disambiguate (not here, but as a separate cleanup). |
Does the same concern apply to ThinLTO (want to preserve them for inlining later on as in LTO)? If not, why?