This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Move some CodeGenPGO stuff out of CodeGenFunction.h
AbandonedPublic

Authored by vsk on Apr 18 2016, 3:30 PM.

Details

Reviewers
bogner
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 Timeline

vsk updated this revision to Diff 54126.Apr 18 2016, 3:30 PM
vsk retitled this revision from to [CodeGen] Move some CodeGenPGO stuff out of CodeGenFunction.h.
vsk updated this object.
vsk added a reviewer: bogner.
vsk added a subscriber: cfe-commits.
vsk updated this revision to Diff 54128.Apr 18 2016, 3:37 PM
vsk updated this object.
  • Remove extraneous whitespace changes.
vsk abandoned this revision.May 1 2016, 6:04 PM

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?)