[BOLT] Handle recursive calls as inter-branches in DataAggregator
Align yaml and fdata profiles by applying the same treatment to recursive calls (direct, indirect, tail). fdata profile increments entry count when handling recursive calls. Make perf/pre-aggregated perf reader (DataAggregator) do the same. Test Plan: In pre-aggregated-perf.test, add a dummy pre-aggregated branch entry between an indirect call in `frame_dummy` function and its entry point. Check that YAML profile gets incremented entry count for this function. End-to-end test: https://github.com/rafaelauler/bolt-tests/pull/24 Reviewed By: #bolt, maksfb Differential Revision: https://reviews.llvm.org/D152338
Loading
Please sign in to comment