Page MenuHomePhabricator

Please use GitHub pull requests for new patches. Phabricator shutdown timeline

Feed Advanced Search

Aug 30 2023

snehasish committed rG37fd3c96b917: [memprof] Add a MemProfReader base class. (authored by snehasish).
[memprof] Add a MemProfReader base class.
Aug 30 2023, 1:21 PM · Restricted Project, Restricted Project
snehasish closed D159141: [memprof] Add a MemProfReader base class..
Aug 30 2023, 1:21 PM · Restricted Project, Restricted Project
snehasish added a comment to D159141: [memprof] Add a MemProfReader base class..

Should there be a test to cover the new base class? In particular the constructor isn't called and the readNextRecord with a null Callback case.

Aug 30 2023, 1:06 PM · Restricted Project, Restricted Project
snehasish updated the diff for D159141: [memprof] Add a MemProfReader base class..

Add unit test, address comments, cleanup unused includes in test.

Aug 30 2023, 1:02 PM · Restricted Project, Restricted Project

Aug 29 2023

snehasish requested review of D159141: [memprof] Add a MemProfReader base class..
Aug 29 2023, 2:24 PM · Restricted Project, Restricted Project
snehasish committed rG0edc32fda5a7: [memprof] Canonicalize the function name prior to hashing. (authored by snehasish).
[memprof] Canonicalize the function name prior to hashing.
Aug 29 2023, 1:46 PM · Restricted Project, Restricted Project
snehasish closed D159132: [memprof] Canonicalize the function name prior to hashing..
Aug 29 2023, 1:45 PM · Restricted Project, Restricted Project
snehasish updated the diff for D159132: [memprof] Canonicalize the function name prior to hashing..

Address comments.

Aug 29 2023, 1:43 PM · Restricted Project, Restricted Project
snehasish requested review of D159132: [memprof] Canonicalize the function name prior to hashing..
Aug 29 2023, 12:02 PM · Restricted Project, Restricted Project

Aug 28 2023

snehasish added inline comments to D157124: [CodeGen][AArch64] Don't split jump table basic blocks.
Aug 28 2023, 1:49 PM · Restricted Project, Restricted Project
snehasish accepted D157124: [CodeGen][AArch64] Don't split jump table basic blocks.

lgtm

Aug 28 2023, 12:15 PM · Restricted Project, Restricted Project

Aug 25 2023

snehasish committed rG3dbabeadd63e: [CodeGen] Remove unused option in MachineFunctionSplitter. (authored by snehasish).
[CodeGen] Remove unused option in MachineFunctionSplitter.
Aug 25 2023, 2:25 PM · Restricted Project, Restricted Project
snehasish closed D158885: [CodeGen] Remove unused option in MachineFunctionSplitter..
Aug 25 2023, 2:24 PM · Restricted Project, Restricted Project
snehasish requested review of D158885: [CodeGen] Remove unused option in MachineFunctionSplitter..
Aug 25 2023, 1:29 PM · Restricted Project, Restricted Project

Aug 24 2023

snehasish added inline comments to D157124: [CodeGen][AArch64] Don't split jump table basic blocks.
Aug 24 2023, 4:28 PM · Restricted Project, Restricted Project
snehasish added inline comments to D157124: [CodeGen][AArch64] Don't split jump table basic blocks.
Aug 24 2023, 9:05 AM · Restricted Project, Restricted Project

Aug 11 2023

snehasish updated subscribers of D157750: Properly handle -fsplit-machine-functions for fatbinary compilation.
Aug 11 2023, 1:30 PM · Restricted Project, Restricted Project, Restricted Project

Aug 10 2023

snehasish added a comment to D157563: [CodeGen] Move function splitting tests from X86 to Generic (NFC).

lgtm

Aug 10 2023, 8:22 AM · Restricted Project, Restricted Project

Aug 9 2023

snehasish accepted D157563: [CodeGen] Move function splitting tests from X86 to Generic (NFC).

lgtm

Aug 9 2023, 4:45 PM · Restricted Project, Restricted Project
snehasish added a comment to D157127: [CodeGen][AArch64] Don't split functions with a red zone on AArch64.

It would be great to reuse the existing corpus of splitting tests for ARM. They would cover basic functionality along with interactions with different flavours of FDO. Can you create a separate patch to move the existing tests in test/CodeGen/X86/machine-function-splitter.ll to test/CodeGen/Generic/machine-function-splitter.ll? Then we can add the triple and appropriate CHECKs for x86 and ARM.

Aug 9 2023, 3:10 PM · Restricted Project, Restricted Project, Restricted Project
snehasish added a comment to D157063: [CodeGen] Make the MachineFunctionSplitter pass testable via MIR.

Is there a specific reason to test MFS (on ARM) with MIR instead of .ll inputs? Only ~11% of the tests in test/CodeGen/AArch64 are in MIR, the rest are bitcode files. IMO bitcode is much easier to read, maintain and we can reuse most (all?) of the existing tests we have in machine-function-splitter.ll. So my preference would be to use bitcode unless there is a fundamental reason which blocks us from testing with bitcode.

Aug 9 2023, 10:20 AM · Restricted Project, Restricted Project, Restricted Project

Jul 27 2023

snehasish accepted D156460: [MemProf] Convert PGO raw profile to text format.

lgtm

Jul 27 2023, 11:00 AM · Restricted Project, Restricted Project
snehasish added a comment to D156460: [MemProf] Convert PGO raw profile to text format.

Can you also update llvm/test/Transforms/PGOProfile/Inputs/update_memprof_inputs.sh which generates the profraw today?

Jul 27 2023, 10:33 AM · Restricted Project, Restricted Project

Jul 26 2023

snehasish added inline comments to D138846: MC/DC in LLVM Source-Based Code Coverage: LLVM back-end and compiler-rt.
Jul 26 2023, 5:36 PM · Restricted Project, Restricted Project, Restricted Project, Restricted Project

Jul 20 2023

snehasish added a comment to D155770: [llvm-profdata] Rewrite algorithm to reduce profile size limit.

Can you add some numbers on the speedup to the patch description? Also how much is profile size reduction wall time as a fraction of the entire time?

Jul 20 2023, 8:58 AM · Restricted Project, Restricted Project

Jul 12 2023

snehasish committed rG787a5efb020f: [memprof] Fix use-after-free in peekBuildIds. (authored by snehasish).
[memprof] Fix use-after-free in peekBuildIds.
Jul 12 2023, 2:21 PM · Restricted Project, Restricted Project
snehasish closed D155110: [memprof] Fix use-after-free in peekBuildIds..
Jul 12 2023, 2:21 PM · Restricted Project, Restricted Project
snehasish added a comment to D155110: [memprof] Fix use-after-free in peekBuildIds..

lgtm but you could also consider collapsing both BuildIds and BuildIdsSet into a single SetVector for conciseness.

Jul 12 2023, 2:08 PM · Restricted Project, Restricted Project
snehasish requested review of D155110: [memprof] Fix use-after-free in peekBuildIds..
Jul 12 2023, 12:59 PM · Restricted Project, Restricted Project

Jul 11 2023

snehasish committed rGa1383db75561: [memprof] Add an overload for RawMemProfReader::create. (authored by snehasish).
[memprof] Add an overload for RawMemProfReader::create.
Jul 11 2023, 4:05 PM · Restricted Project, Restricted Project
snehasish closed D155021: [memprof] Add an overload for RawMemProfReader::create..
Jul 11 2023, 4:05 PM · Restricted Project, Restricted Project
snehasish requested review of D155021: [memprof] Add an overload for RawMemProfReader::create..
Jul 11 2023, 3:06 PM · Restricted Project, Restricted Project

Jul 10 2023

snehasish accepted D154856: [MemProf] Use new option/pass for profile feedback and matching.

lgtm, thanks for testing the various combinations of profiles passed to each option.

Jul 10 2023, 4:08 PM · Restricted Project, Restricted Project, Restricted Project
snehasish accepted D154872: [MemProf] Refactor memory profile matching into MemProfiler (NFC).

lgtm

Jul 10 2023, 12:40 PM · Restricted Project, Restricted Project
snehasish added inline comments to D154856: [MemProf] Use new option/pass for profile feedback and matching.
Jul 10 2023, 10:33 AM · Restricted Project, Restricted Project, Restricted Project

Jun 30 2023

snehasish accepted D152399: [CodeGen] Fine tune MachineFunctionSplitPass (MFS) for FSAFDO. .

lgtm, thanks for your patience with all the suggestions!

Jun 30 2023, 9:40 AM · Restricted Project, Restricted Project

Jun 29 2023

snehasish added inline comments to D152399: [CodeGen] Fine tune MachineFunctionSplitPass (MFS) for FSAFDO. .
Jun 29 2023, 4:08 PM · Restricted Project, Restricted Project

Jun 28 2023

snehasish added a comment to D153904: [instrprof] Add an overload to accept raw_string_ostream..

LGTM but please change description per your explanation

Hmm, I amended the commit message in my branch but after landing it I don't see it in git log. Let me try to fix up.

Jun 28 2023, 9:50 AM · Restricted Project, Restricted Project
snehasish added a comment to D153904: [instrprof] Add an overload to accept raw_string_ostream..

LGTM but please change description per your explanation

Jun 28 2023, 9:42 AM · Restricted Project, Restricted Project
snehasish committed rG4aabd19c06d3: [instrprof] Add an overload to accept raw_string_ostream. (authored by snehasish).
[instrprof] Add an overload to accept raw_string_ostream.
Jun 28 2023, 9:37 AM · Restricted Project, Restricted Project
snehasish closed D153904: [instrprof] Add an overload to accept raw_string_ostream..
Jun 28 2023, 9:37 AM · Restricted Project, Restricted Project
snehasish added a comment to D153904: [instrprof] Add an overload to accept raw_string_ostream..

The change looks fine to me but is this patch missing the referenced unit test changes?:

Also use this new overload for existing unit test usecases.

Jun 28 2023, 8:56 AM · Restricted Project, Restricted Project

Jun 27 2023

snehasish updated the diff for D153904: [instrprof] Add an overload to accept raw_string_ostream..

Fix capitalization in comment.

Jun 27 2023, 1:39 PM · Restricted Project, Restricted Project
snehasish retitled D153904: [instrprof] Add an overload to accept raw_string_ostream. from [instrprof] Add an overload for raw_fd_ostream. to [instrprof] Add an overload to accept raw_string_ostream..
Jun 27 2023, 1:36 PM · Restricted Project, Restricted Project
snehasish requested review of D153904: [instrprof] Add an overload to accept raw_string_ostream..
Jun 27 2023, 11:37 AM · Restricted Project, Restricted Project

Jun 26 2023

snehasish added inline comments to D152399: [CodeGen] Fine tune MachineFunctionSplitPass (MFS) for FSAFDO. .
Jun 26 2023, 1:21 PM · Restricted Project, Restricted Project

Jun 22 2023

snehasish added a comment to D152834: A new code layout algorithm for function reordering [2/3].

Hmm. I was using "cpu/event=0x85,umask=0x61/u" for i-TLB misses, which we got from https://download.01.org/perfmon, which has even been moved since then. Back in 2017 (when the algorithm was developed) we thought this is the "right" event to look at, but it might not be the case. Which one would you recommend to look at? I see this page has a good description.

There are a few different sets of events which count iTLB related behaviours. The misses that matter most are the ones that stall the pipeline. This is counted by FRONTEND_RETIRED.ITLB_MISS. https://github.com/intel/perfmon/blob/main/SKL/events/skylake_core.json#L5117-L5137

Jun 22 2023, 10:18 AM · Restricted Project, Restricted Project

Jun 21 2023

snehasish accepted D147740: [llvm-profdata] Refactoring Sample Profile Reader to increase FDO build speed using MD5 as key to Sample Profile map.

lgtm

Jun 21 2023, 12:56 PM · Restricted Project, Restricted Project

Jun 9 2023

snehasish added inline comments to D147740: [llvm-profdata] Refactoring Sample Profile Reader to increase FDO build speed using MD5 as key to Sample Profile map.
Jun 9 2023, 4:06 PM · Restricted Project, Restricted Project
snehasish added a comment to D152399: [CodeGen] Fine tune MachineFunctionSplitPass (MFS) for FSAFDO. .

I'll remove the testcase from this CL

Actually I would prefer the foo4 based test case in this patch and in the same file too (test/CodeGen/X86/machine-function-splitter.ll). Also added a comment in the other patch D152577. Thanks!

Jun 9 2023, 2:25 PM · Restricted Project, Restricted Project
snehasish added a comment to D152577: Part 2 of Fine tune MachineFunctionSplitPass (MFS) for FSAFDO..

If we commit this patch before D152399 then I think we can move the machine-function-splitter-fsafdo.ll test to D152399? It would be nice to keep the patch and it's own test in the same commit.

Jun 9 2023, 2:19 PM · Restricted Project, Restricted Project

Jun 7 2023

snehasish requested changes to D152399: [CodeGen] Fine tune MachineFunctionSplitPass (MFS) for FSAFDO. .
Jun 7 2023, 3:31 PM · Restricted Project, Restricted Project
snehasish added inline comments to D152399: [CodeGen] Fine tune MachineFunctionSplitPass (MFS) for FSAFDO. .
Jun 7 2023, 3:27 PM · Restricted Project, Restricted Project
snehasish accepted D152320: [llvm-profdata] Use StringRef in place of string in FunctionSamplesMap.

lgtm, looks safe to me since the context objects keep a StringRef.

Jun 7 2023, 9:53 AM · Restricted Project, Restricted Project

May 26 2023

snehasish accepted D151593: [MemProf] Clean up MemProf instrumentation pass invocation.

lgtm

May 26 2023, 4:28 PM · Restricted Project, Restricted Project, Restricted Project

May 8 2023

snehasish added inline comments to D150148: [IPO] Opt-in local clones for thinlto imports.
May 8 2023, 5:08 PM · Restricted Project, Restricted Project
snehasish added inline comments to D150148: [IPO] Opt-in local clones for thinlto imports.
May 8 2023, 4:42 PM · Restricted Project, Restricted Project
snehasish accepted D148872: [llvm-profdata] ProfileReader cleanup - preparation for MD5 refactoring - 2.

LGTM, please wait a bit in case others have any concerns.

May 8 2023, 9:50 AM · Restricted Project, Restricted Project

May 4 2023

snehasish accepted D149924: [MemProf] Use MapVector to avoid non-determinism.

lgtm

May 4 2023, 10:29 PM · Restricted Project, Restricted Project

May 3 2023

snehasish accepted D141077: [MemProf] Context disambiguation cloning pass [patch 3/4].

Fix lgtm.

May 3 2023, 6:26 PM · Restricted Project, Restricted Project

May 2 2023

snehasish added inline comments to D147812: [InstrProf] Use BalancedPartitioning to order temporal profiling trace data.
May 2 2023, 2:53 PM · Restricted Project, Restricted Project
snehasish accepted D149684: [MemProf] Use profiled lifetime access density directly.

lgtm

May 2 2023, 1:38 PM · Restricted Project, Restricted Project
snehasish accepted D149215: [MemProf] Control availability of hot/cold operator new from LTO link.

lgtm

May 2 2023, 12:01 PM · Restricted Project, Restricted Project, Restricted Project
snehasish accepted D149669: [MemProf] Removed unused allocation type.

lgtm

May 2 2023, 11:50 AM · Restricted Project, Restricted Project
snehasish accepted D141077: [MemProf] Context disambiguation cloning pass [patch 3/4].

lgtm, remaining comments are (mostly) cosmetic.

May 2 2023, 11:48 AM · Restricted Project, Restricted Project

May 1 2023

snehasish accepted D149600: [MemProf] Recognize hot/cold operator new as replaceable allocations.

lgtm

May 1 2023, 11:29 AM · Restricted Project, Restricted Project

Apr 28 2023

snehasish accepted D149475: [MemProf] Use updated version of hot/cold operator new.

Should we update this too https://github.com/llvm/llvm-project/blob/main/llvm/test/tools/llvm-tli-checker/ps4-tli-check.yaml#L41

Apr 28 2023, 12:14 PM · Restricted Project, Restricted Project

Apr 27 2023

snehasish committed rG1176d97598a9: [memprof][NFC] Update a stale comment about symbolization. (authored by snehasish).
[memprof][NFC] Update a stale comment about symbolization.
Apr 27 2023, 12:00 PM · Restricted Project, Restricted Project
snehasish closed D149370: [memprof][NFC] Update a stale comment about symbolization..
Apr 27 2023, 11:59 AM · Restricted Project, Restricted Project
snehasish requested review of D149370: [memprof][NFC] Update a stale comment about symbolization..
Apr 27 2023, 11:57 AM · Restricted Project, Restricted Project

Apr 26 2023

snehasish accepted D149117: [MemProf] Context disambiguation cloning pass [patch 4/4].

lgtm

Apr 26 2023, 4:38 PM · Restricted Project, Restricted Project
snehasish added a comment to D141077: [MemProf] Context disambiguation cloning pass [patch 3/4].

Looks good overall, still thinking if we can make assignFunctions less monolithic and easier to follow.

Apr 26 2023, 12:59 PM · Restricted Project, Restricted Project

Apr 25 2023

snehasish accepted D149192: [IR] Add interface to remove a CallBase string function attribute.

lgtm

Apr 25 2023, 2:15 PM · Restricted Project, Restricted Project

Apr 20 2023

snehasish accepted D140949: [MemProf] Context disambiguation cloning pass [patch 2/3].

lgtm

Apr 20 2023, 12:51 PM · Restricted Project, Restricted Project

Apr 19 2023

snehasish added a comment to D141077: [MemProf] Context disambiguation cloning pass [patch 3/4].

Still need to look into assignFunctions but before I do I'm wondering if this patch can be split into two with applyImport and assignFunctions in separate patches. What do you think?

Apr 19 2023, 5:33 PM · Restricted Project, Restricted Project
snehasish accepted D148718: [MemProf] Optionally pass hot/cold hints to operator new.

lgtm

Apr 19 2023, 12:43 PM · Restricted Project, Restricted Project
snehasish added inline comments to D148718: [MemProf] Optionally pass hot/cold hints to operator new.
Apr 19 2023, 10:38 AM · Restricted Project, Restricted Project

Apr 17 2023

snehasish committed rG932d7b9ddd23: [memprof] Print out profile build ids in the error message. (authored by snehasish).
[memprof] Print out profile build ids in the error message.
Apr 17 2023, 10:54 AM · Restricted Project, Restricted Project
snehasish closed D148301: [memprof] Print out profile build ids in the error message..
Apr 17 2023, 10:54 AM · Restricted Project, Restricted Project
snehasish updated the diff for D148301: [memprof] Print out profile build ids in the error message..

Rebase, address comment.

Apr 17 2023, 10:34 AM · Restricted Project, Restricted Project

Apr 14 2023

snehasish added a comment to D148301: [memprof] Print out profile build ids in the error message..

Thanks for the quick review!

Apr 14 2023, 2:01 PM · Restricted Project, Restricted Project
snehasish updated the diff for D148301: [memprof] Print out profile build ids in the error message..

Address comments.

Apr 14 2023, 1:49 PM · Restricted Project, Restricted Project

Apr 13 2023

snehasish updated the diff for D148301: [memprof] Print out profile build ids in the error message..

Remove unused include.

Apr 13 2023, 10:17 PM · Restricted Project, Restricted Project
snehasish requested review of D148301: [memprof] Print out profile build ids in the error message..
Apr 13 2023, 10:16 PM · Restricted Project, Restricted Project
snehasish accepted D148259: Fix warnings in InstrProfTest.cpp.

Can you leave an example of the warnings in the review discussion here for posterity? Thanks!

Apr 13 2023, 11:15 AM · Restricted Project, Restricted Project
snehasish accepted D146182: [llvm-profdata] Fixed various issue with Sample Profile Reader.

lgtm since I think this change is safe for existing profiles. @huangjd please confirm before submitting, thanks!

Apr 13 2023, 10:36 AM · Restricted Project, Restricted Project

Apr 12 2023

snehasish accepted D148150: [InstrProf][Temporal] Add weight field to traces.
Apr 12 2023, 8:17 PM · Restricted Project, Restricted Project, Restricted Project
snehasish accepted D148150: [InstrProf][Temporal] Add weight field to traces.

lgtm

Apr 12 2023, 5:08 PM · Restricted Project, Restricted Project, Restricted Project
snehasish added inline comments to D148150: [InstrProf][Temporal] Add weight field to traces.
Apr 12 2023, 1:15 PM · Restricted Project, Restricted Project, Restricted Project

Apr 10 2023

snehasish added inline comments to D140949: [MemProf] Context disambiguation cloning pass [patch 2/3].
Apr 10 2023, 2:49 PM · Restricted Project, Restricted Project

Apr 6 2023

snehasish accepted D147287: [InstrProf] Temporal Profiling.

lgtm

Apr 6 2023, 6:25 PM · Restricted Project, Restricted Project, Restricted Project
snehasish added inline comments to D147287: [InstrProf] Temporal Profiling.
Apr 6 2023, 4:26 PM · Restricted Project, Restricted Project, Restricted Project
snehasish added a comment to D147287: [InstrProf] Temporal Profiling.

Looks good overall, added a few comments which are mostly cosmetic.

Apr 6 2023, 11:30 AM · Restricted Project, Restricted Project, Restricted Project

Mar 21 2023

snehasish accepted D145836: [MemProf] Context disambiguation cloning pass [patch 1b/3].

lgtm, I assume you will reduce these test cases too?

Mar 21 2023, 2:22 PM · Restricted Project, Restricted Project
snehasish committed rGcef71d0105c5: [memprof] Support symbolization of PIE binaries. (authored by snehasish).
[memprof] Support symbolization of PIE binaries.
Mar 21 2023, 1:13 PM · Restricted Project, Restricted Project
snehasish closed D146181: [memprof] Support symbolization of PIE binaries..
Mar 21 2023, 1:13 PM · Restricted Project, Restricted Project
snehasish updated the diff for D146181: [memprof] Support symbolization of PIE binaries..

Rebase, remove var only used in assert.

Mar 21 2023, 1:09 PM · Restricted Project, Restricted Project
snehasish added a comment to D146181: [memprof] Support symbolization of PIE binaries..

Thanks for the review!

Mar 21 2023, 12:58 PM · Restricted Project, Restricted Project
snehasish updated the diff for D146181: [memprof] Support symbolization of PIE binaries..

Address comments.

Mar 21 2023, 12:56 PM · Restricted Project, Restricted Project
snehasish added a comment to D146181: [memprof] Support symbolization of PIE binaries..

PTAL, thanks!

Mar 21 2023, 11:37 AM · Restricted Project, Restricted Project