search for: sampleprofileloader

Displaying 10 results from an estimated 10 matches for "sampleprofileloader".

2014 Mar 19
2
[LLVMdev] Interprocedural Block Placement algorithm, challenges and opportunities
...il-duplication. So in order to keep track of the mapping between MBBs and BBs, one needs to insert code in every function that modifies the structure of BBs and MBBs. The current block placement pass (MachineBasicBlockPlacement) works at the machine code level and with the new profiling structure (SampleProfileLoader), is effective as far as context-free profiling info is considered sufficient. However, the implementation of SampleProfileLoader itself encourages context sensitive info, which cannot efficiently be provided with the current profiling structure (<func,lineNo>). Is there any way to incorpora...
2020 Nov 17
3
[RFC] Control Flow Sensitive AutoFDO (FS-AFDO)
...f used samples and total sample) is lower than a threshold value. In which case, the user should rebuild the Perf binary and collect the Perf profile again. 2.4 Example of pass pipeline Here is the one sample pass pipeline for AFDO + ThinLTO compilation. // Pass Pipeline: InsertBaseDiscrimator SampleProfileLoader in FE ... CM inline ... SampleProfileLoader in BE ... AddFSDiscriminator(kind_mbp) FSProfileLoader(kind_mbp) MachineBlockPlacement AddFSDiscriminator(kind_branchfolding) FSProfileLoader(kind_branchfolding) BranchFoldingPass … AddFSDiscriminator(kind_final) In the above pass pipeline....
2020 Nov 19
0
[RFC] Control Flow Sensitive AutoFDO (FS-AFDO)
...used samples and total sample) is lower than a threshold value. In which case, the user should rebuild the Perf binary and collect the Perf profile again. 2.4 Example of pass pipeline Here is the one sample pass pipeline for AFDO + ThinLTO compilation. // Pass Pipeline: InsertBaseDiscrimator SampleProfileLoader in FE ... CM inline ... SampleProfileLoader in BE ... AddFSDiscriminator(kind_mbp) FSProfileLoader(kind_mbp) MachineBlockPlacement AddFSDiscriminator(kind_branchfolding) FSProfileLoader(kind_branchfolding) BranchFoldingPass … AddFSDiscriminator(kind_final) In the above pass pipeline....
2020 Aug 07
2
[RFC] Context-sensitive Sample PGO with Pseudo-Instrumentation
...given calling context, we need to promote the context profile tree to be top-level context. This preserves the child context under that function so later inline decisions for calls originating from that not inlined function will still be driven by an accurate context profile. These APIs are used by SampleProfileLoader’s inlining, for better inline decisions and better post-inline counts. For optimal results, the new infrastructure needs to work with a top-down FDO inliner. We added top-down FDO inlining under a switch, and the switch is turned on by default in upstream recently. There’re a few other improvements...
2020 Aug 08
5
[RFC] Context-sensitive Sample PGO with Pseudo-Instrumentation
...given calling context, we need to promote the context profile tree to be top-level context. This preserves the child context under that function so later inline decisions for calls originating from that not inlined function will still be driven by an accurate context profile. These APIs are used by SampleProfileLoader’s inlining, for better inline decisions and better post-inline counts. For optimal results, the new infrastructure needs to work with a top-down FDO inliner. We added top-down FDO inlining under a switch, and the switch is turned on by default in upstream recently. There’re a few other improvements...
2020 Aug 07
4
[RFC] Context-sensitive Sample PGO with Pseudo-Instrumentation
...given calling context, we need to promote the context profile tree to be top-level context. This preserves the child context under that function so later inline decisions for calls originating from that not inlined function will still be driven by an accurate context profile. These APIs are used by SampleProfileLoader’s inlining, for better inline decisions and better post-inline counts. For optimal results, the new infrastructure needs to work with a top-down FDO inliner. We added top-down FDO inlining under a switch, and the switch is turned on by default in upstream recently. There’re a few other improvements...
2020 Aug 08
3
[RFC] Context-sensitive Sample PGO with Pseudo-Instrumentation
...given calling context, we need to promote the context profile tree to be top-level context. This preserves the child context under that function so later inline decisions for calls originating from that not inlined function will still be driven by an accurate context profile. These APIs are used by SampleProfileLoader’s inlining, for better inline decisions and better post-inline counts. For optimal results, the new infrastructure needs to work with a top-down FDO inliner. We added top-down FDO inlining under a switch, and the switch is turned on by default in upstream recently. There’re a few other improvements...
2020 Aug 08
2
[RFC] Context-sensitive Sample PGO with Pseudo-Instrumentation
...need to promote the context profile tree to > be top-level context. This preserves the child context under that function > so later inline decisions for calls originating from that not inlined > function will still be driven by an accurate context profile. > > These APIs are used by SampleProfileLoader’s inlining, for better inline > decisions and better post-inline counts. For optimal results, the new > infrastructure needs to work with a top-down FDO inliner. We added top-down > FDO inlining under a switch, and the switch is turned on by default in > upstream recently. There’re a fe...
2020 Aug 08
2
[RFC] Context-sensitive Sample PGO with Pseudo-Instrumentation
...given calling context, we need to promote the context profile tree to be top-level context. This preserves the child context under that function so later inline decisions for calls originating from that not inlined function will still be driven by an accurate context profile. These APIs are used by SampleProfileLoader’s inlining, for better inline decisions and better post-inline counts. For optimal results, the new infrastructure needs to work with a top-down FDO inliner. We added top-down FDO inlining under a switch, and the switch is turned on by default in upstream recently. There’re a few other improvements...
2020 Aug 08
2
[RFC] Context-sensitive Sample PGO with Pseudo-Instrumentation
...given calling context, we need to promote the context profile tree to be top-level context. This preserves the child context under that function so later inline decisions for calls originating from that not inlined function will still be driven by an accurate context profile. These APIs are used by SampleProfileLoader’s inlining, for better inline decisions and better post-inline counts. For optimal results, the new infrastructure needs to work with a top-down FDO inliner. We added top-down FDO inlining under a switch, and the switch is turned on by default in upstream recently. There’re a few other improvements...