In case of a need to distinguish different query sites for gradual commit or
debugging of PGSO. NFC.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 41740 Build 42030: arc lint + arc unit
Event Timeline
Comment Actions
I don't think so as some of the CodeGen passes use the IR version instead of the MachineIR version like CodeGenPrepare/ISel.
Comment Actions
For example, we could retain the existing behavior (return true only for cold code and the existing call sites of shouldFuncOptimizeForSize) while adding new callers of shouldOptimizeForSize by changing shouldOptimizeForSizeImpl to always false for the "QueryType == PGSOQueryType::Other" case. An alternative would be to combine addition of new callers and behavior changes.