[PATCH] D57092: [HotColdSplitting] Get DT and PDT from the pass manager.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 23 03:48:50 PST 2019


fhahn created this revision.
fhahn added reviewers: vsk, hiraditya, tejohnson, thegameg, sebpop.

Instead of manually computing DT and PDT, we can get the from the pass
manager, which ideally has them already cached. With the new pass
manager, we could even preserve DT/PDT on a per function basis in a
module pass.

I think this also addresses the TODO about re-using the computed DTs for
BFI. IIUC, GetBFI will fetch the DT from the pass manager and when we
will fetch the cached version later.

I do not have things set up to measure the compile time impact of this
change, but maybe @vedantk could give it a try?


https://reviews.llvm.org/D57092

Files:
  llvm/lib/Transforms/IPO/HotColdSplitting.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57092.183079.patch
Type: text/x-patch
Size: 4523 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190123/b11ca938/attachment-0001.bin>


More information about the llvm-commits mailing list