Cons: 1 extra malloc per CodeGenFunction instantiation.
Pros: This makes incremental builds noticeably faster, especially on my laptop. E.g with this patch there's no need to re-compile CGCUDARuntime.cpp if InstrProfReader.h changes.
Paths
| Differential D19243
[CodeGen] Move some CodeGenPGO stuff out of CodeGenFunction.h AbandonedPublic Authored by vsk on Apr 18 2016, 3:30 PM.
Details
Summary Cons: 1 extra malloc per CodeGenFunction instantiation. Pros: This makes incremental builds noticeably faster, especially on my laptop. E.g with this patch there's no need to re-compile CGCUDARuntime.cpp if InstrProfReader.h changes.
Diff Detail Event Timelinevsk updated this object. Comment Actions It is a bit messy. (Aside: I don't think the size of CodeGenPGO is visible with this change, so unique_ptr/default_delete wouldn't work?)
Revision Contents
Diff 54128 lib/CodeGen/CGBlocks.cpp
lib/CodeGen/CGCall.cpp
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGObjC.cpp
lib/CodeGen/CGStmt.cpp
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenFunction.h
lib/CodeGen/CodeGenFunction.cpp
lib/CodeGen/CodeGenPGO.cpp
|