Page MenuHomePhabricator

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

hjyamauchi (Hiroshi Yamauchi)
User

Projects

User does not belong to any projects.

User Details

User Since
Jun 28 2017, 5:32 PM (325 w, 12 h)

Recent Activity

Thu, Aug 31

hjyamauchi committed rG8942d3047c68: [AArch64][WinCFI] Handle cases where no SEH opcodes in the prologue (authored by hjyamauchi).
[AArch64][WinCFI] Handle cases where no SEH opcodes in the prologue
Thu, Aug 31, 12:43 PM · Restricted Project, Restricted Project
hjyamauchi closed D159238: [AArch64][WinCFI] Handle cases where no SEH opcodes in the prologue but there are some in the epilogue..
Thu, Aug 31, 12:43 PM · Restricted Project, Restricted Project

Wed, Aug 30

hjyamauchi requested review of D159238: [AArch64][WinCFI] Handle cases where no SEH opcodes in the prologue but there are some in the epilogue..
Wed, Aug 30, 4:25 PM · Restricted Project, Restricted Project

Aug 17 2023

hjyamauchi committed rG1e7f592a890a: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations. (authored by hjyamauchi).
[MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations.
Aug 17 2023, 2:40 PM · Restricted Project, Restricted Project
hjyamauchi closed D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..
Aug 17 2023, 2:40 PM · Restricted Project, Restricted Project
hjyamauchi added inline comments to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..
Aug 17 2023, 2:14 PM · Restricted Project, Restricted Project
hjyamauchi updated the diff for D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

Rebased over https://reviews.llvm.org/D158122. Addressed the comments on the test code.

Aug 17 2023, 2:14 PM · Restricted Project, Restricted Project
hjyamauchi committed rG3406934e4db4: [MC][COFF][AArch64] Fix the storage class for private linkage symbols. (authored by hjyamauchi).
[MC][COFF][AArch64] Fix the storage class for private linkage symbols.
Aug 17 2023, 1:59 PM · Restricted Project, Restricted Project
hjyamauchi closed D158122: [MC][COFF][AArch64] Fix the storage class for private linkage symbols..
Aug 17 2023, 1:58 PM · Restricted Project, Restricted Project

Aug 16 2023

hjyamauchi updated the diff for D158122: [MC][COFF][AArch64] Fix the storage class for private linkage symbols..

Moved the test to test/CodeGen and removed the -filetype=asm flag.

Aug 16 2023, 5:42 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

I think that I generally prefer this approach. I would however like to see a test for the storage class changes (and ideally split from this change - it fixes a problem needed to fix here, but is a completely standalone improvement).

Aug 16 2023, 2:47 PM · Restricted Project, Restricted Project
hjyamauchi requested review of D158122: [MC][COFF][AArch64] Fix the storage class for private linkage symbols..
Aug 16 2023, 2:45 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D157059: [lldb][PECOFF] Exclude alignment padding when reading section data.

Hi, this is failing on swift-ci (runs on x86 bots) with the following error:

/Users/ec2-user/jenkins/workspace/oss-lldb-incremental-macos-cmake/build/Ninja-ReleaseAssert+stdlib-Release/lldb-macosx-x86_64/unittests/ObjectFile/PECOFF/./ObjectFilePECOFFTests --gtest_filter=SectionSizeTest.NoAlignmentPadding
--
YAML:12:5: error: unknown key 'SizeOfRawData'
    SizeOfRawData:   512
    ^~~~~~~~~~~~~
/Users/ec2-user/jenkins/workspace/oss-lldb-incremental-macos-cmake/llvm-project/lldb/unittests/ObjectFile/PECOFF/TestSectionSize.cpp:49: Failure
Value of: llvm::detail::TakeExpected(ExpectedFile)
Expected: succeeded
  Actual: failed  (convertYAML() failed)

/Users/ec2-user/jenkins/workspace/oss-lldb-incremental-macos-cmake/llvm-project/lldb/unittests/ObjectFile/PECOFF/TestSectionSize.cpp:49
Value of: llvm::detail::TakeExpected(ExpectedFile)
Expected: succeeded
  Actual: failed  (convertYAML() failed)

https://ci.swift.org/view/LLDB/job/oss-lldb-incremental-macos-cmake/

Could you take a look please?

Aug 16 2023, 2:18 PM · Restricted Project, Restricted Project, Restricted Project

Aug 14 2023

hjyamauchi updated the diff for D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

Updated to treat all private linkage symbols as internal and add them to the symbol table, as Reid suggested. This fixes the issue with private linkage and the swift issue.

Aug 14 2023, 2:19 PM · Restricted Project, Restricted Project

Aug 4 2023

hjyamauchi committed rGe9040e875d92: [lldb][PECOFF] Exclude alignment padding when reading section data (authored by hjyamauchi).
[lldb][PECOFF] Exclude alignment padding when reading section data
Aug 4 2023, 1:45 PM · Restricted Project, Restricted Project
hjyamauchi closed D157059: [lldb][PECOFF] Exclude alignment padding when reading section data.
Aug 4 2023, 1:45 PM · Restricted Project, Restricted Project, Restricted Project
hjyamauchi added inline comments to D157059: [lldb][PECOFF] Exclude alignment padding when reading section data.
Aug 4 2023, 10:24 AM · Restricted Project, Restricted Project, Restricted Project
hjyamauchi updated the diff for D157059: [lldb][PECOFF] Exclude alignment padding when reading section data.
Aug 4 2023, 10:23 AM · Restricted Project, Restricted Project, Restricted Project

Aug 3 2023

hjyamauchi updated the diff for D157059: [lldb][PECOFF] Exclude alignment padding when reading section data.
Aug 3 2023, 7:40 PM · Restricted Project, Restricted Project, Restricted Project
hjyamauchi added a reviewer for D157059: [lldb][PECOFF] Exclude alignment padding when reading section data: compnerd.
Aug 3 2023, 5:55 PM · Restricted Project, Restricted Project, Restricted Project
hjyamauchi requested review of D157059: [lldb][PECOFF] Exclude alignment padding when reading section data.
Aug 3 2023, 5:34 PM · Restricted Project, Restricted Project, Restricted Project

Jul 31 2023

hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

Please take another look. @efriedma

Jul 31 2023, 6:55 PM · Restricted Project, Restricted Project

Jul 27 2023

hjyamauchi committed rGa90228b911d3: [AArch64][Windows] Fix the slot offset of the swift async context register. (authored by hjyamauchi).
[AArch64][Windows] Fix the slot offset of the swift async context register.
Jul 27 2023, 12:33 PM · Restricted Project, Restricted Project
hjyamauchi closed D156391: [AArch64][Windows] Fix the slot offset of the swift async context register..
Jul 27 2023, 12:33 PM · Restricted Project, Restricted Project

Jul 26 2023

hjyamauchi added a reviewer for D156391: [AArch64][Windows] Fix the slot offset of the swift async context register.: compnerd.
Jul 26 2023, 10:14 PM · Restricted Project, Restricted Project
hjyamauchi requested review of D156391: [AArch64][Windows] Fix the slot offset of the swift async context register..
Jul 26 2023, 10:03 PM · Restricted Project, Restricted Project

Jul 24 2023

hjyamauchi updated the diff for D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

Update to address comments.

Jul 24 2023, 11:22 AM · Restricted Project, Restricted Project

Jul 22 2023

hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

Please take another look.

Jul 22 2023, 12:22 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

Can you clarify? Does it mean that we need to check A.isInSection() && Layout.getSymbolOffset(A) < getSectionAddressSize(&A.getSection()) before we create a new symbol at where symbol A is? What should happen if that's not the case?

Something like that, yes. If it fails, we need to print an error, because we don't have any way to encode it. At least, I don't think we have a way to encode it? Not sure off the top of my head what offsets the linker would tolerate.

Jul 22 2023, 12:21 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

We should teach adjustFixupValue() in AArch64AsmBackend.cpp to print an error if an unresolved branch with an offset gets there somehow.

If you mean like the following, that would unintentionally trigger when we drop the relocation in the newly-added code (in the if (MCSec == &A.getSection()) case) because IsResolved is false.

case AArch64::fixup_aarch64_pcrel_branch26:
case AArch64::fixup_aarch64_pcrel_call26:
  if (TheTriple.isOSBinFormatCOFF() && !IsResolved && SignedValue != 0) {
    // MSVC link.exe and lld do not support this relocation type with a non-zero offset
    Ctx.reportError(Fixup.getLoc(), "fixup value not supported by the linkers");
  }

I still don't understand why the MCSec == &A.getSection() case is relevant; if the offset is constant, it should be resolved, since "resolved" means "doesn't need a relocation".

Jul 22 2023, 12:20 PM · Restricted Project, Restricted Project
hjyamauchi added inline comments to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..
Jul 22 2023, 12:18 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

There's a bunch of code for A.isTemporary() a few lines earlier; would it make sense to integrate with that? This is sort of similar to what we do with OffsetSymbols, except the maximum offset is zero.

That may make sense as long as it's okay to check if the relocation type is fixup_aarch64_pcrel_branch26 or fixup_aarch64_pcrel_call26 before the getRelocType() call.

Jul 22 2023, 12:16 PM · Restricted Project, Restricted Project
hjyamauchi updated the diff for D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

Updated the revision with the better test and changes per review comments.

Jul 22 2023, 12:16 PM · Restricted Project, Restricted Project

Jul 21 2023

hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

Thanks for the test transcript! It does indeed look like link.exe ignores the existing offset. I also independently tested this, and it actually looks like link.exe blindly ors the target offset bits on top of the existing opcode, just like lld does: https://github.com/llvm/llvm-project/blob/llvmorg-16.0.6/lld/COFF/Chunks.cpp#L306-L322 Depending on the contents of the original offset and the intended symbol difference, the offset may end up being partially visible or not. In any case - the linker doesn't indeed seem to be able to handle immediate offsets here.

Jul 21 2023, 10:19 AM · Restricted Project, Restricted Project

Jul 20 2023

hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

You can't create symbols at arbitrary offsets from the start of a section; you need to check that the symbol actually points somewhere within the section.

Jul 20 2023, 6:35 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

There's a bunch of code for A.isTemporary() a few lines earlier; would it make sense to integrate with that? This is sort of similar to what we do with OffsetSymbols, except the maximum offset is zero.

Jul 20 2023, 6:30 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

We should teach adjustFixupValue() in AArch64AsmBackend.cpp to print an error if an unresolved branch with an offset gets there somehow.

Jul 20 2023, 6:27 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

https://learn.microsoft.com/en-us/windows/win32/debug/pe-format indicates that there does exist such a relocation:

IMAGE_REL_ARM64_BRANCH26 0x0003 The 26-bit relative displacement to the target, for B and BL instructions.

If this relocation is unsupported, we should just disable that relocation from being formed or we should figure out what the linker expectations are.

Yeah. To be clearer, what I observed was that the relocation type works as long as the offset that's embedded in the instruction is zero (I suspect that the linker doesn't use the offset in relocation or assumes it's zero.) I also tried a small local patch in lld to take this non-zero offset into account in the relocation and it also avoided the crashes I'm seeing.

That sounds like the correct thing to do; if a relocation with an offset isn’t supported by lld (but it is by link.exe), we should fix the linker instead of trying to avoid generating it.

I would agree, but it seems that link also does not support the relocation with addend, and I would rather that we retain compatibility with the reference implementation. It sounds like it is only the addend form that we would need to avoid on Windows, not the general relocation.

I had expected those cases to be working correctly though, for many years now, but perhaps there is some case where the original offset indeed happens to get ignored.


The attach text file contains a test (*) and the command line trace that shows the relocation behaviors (without this patch) in the first half, and the same sequence of commands with this patch in the second half.

Jul 20 2023, 3:55 PM · Restricted Project, Restricted Project

Jul 19 2023

hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

That sounds like the correct thing to do; if a relocation with an offset isn’t supported by lld (but it is by link.exe), we should fix the linker instead of trying to avoid generating it.

The description sounds like it's also not supported by link.exe? Not sure.

Jul 19 2023, 4:57 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..

https://learn.microsoft.com/en-us/windows/win32/debug/pe-format indicates that there does exist such a relocation:

IMAGE_REL_ARM64_BRANCH26 0x0003 The 26-bit relative displacement to the target, for B and BL instructions.

If this relocation is unsupported, we should just disable that relocation from being formed or we should figure out what the linker expectations are.

Jul 19 2023, 11:49 AM · Restricted Project, Restricted Project
hjyamauchi added a reviewer for D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations.: compnerd.
Jul 19 2023, 11:04 AM · Restricted Project, Restricted Project
hjyamauchi requested review of D155732: [MC][COFF][AArch64] Avoid incorrect IMAGE_REL_ARM64_BRANCH26 relocations..
Jul 19 2023, 10:59 AM · Restricted Project, Restricted Project

Jul 12 2023

hjyamauchi committed rG6e6d2b7859a3: [AArch64][Windows] Fix the callee-saved registers for swiftcc on Windows/AArch64 (authored by hjyamauchi).
[AArch64][Windows] Fix the callee-saved registers for swiftcc on Windows/AArch64
Jul 12 2023, 1:26 PM · Restricted Project, Restricted Project
hjyamauchi closed D155001: [AArch64][Windows] Fix the callee-saved registers for swiftcc on Windows/AArch64.
Jul 12 2023, 1:25 PM · Restricted Project, Restricted Project
hjyamauchi updated the diff for D155001: [AArch64][Windows] Fix the callee-saved registers for swiftcc on Windows/AArch64.

Added a CHECK-NOT.

Jul 12 2023, 10:44 AM · Restricted Project, Restricted Project

Jul 11 2023

hjyamauchi added a reviewer for D155001: [AArch64][Windows] Fix the callee-saved registers for swiftcc on Windows/AArch64: compnerd.
Jul 11 2023, 12:41 PM · Restricted Project, Restricted Project
hjyamauchi requested review of D155001: [AArch64][Windows] Fix the callee-saved registers for swiftcc on Windows/AArch64.
Jul 11 2023, 12:07 PM · Restricted Project, Restricted Project

May 20 2023

hjyamauchi added a comment to D150305: ObjCopy: support `--dump-section` on COFF.
In D150305#4335987, @hjyamauchi-test wrote:

@hjyamauchi If you want to change username, I can help. Do you want to rename yamauchi to another name (which one?) and rename hjyamauchi to yamauchi?
There may also be ways to find passwords for yamauchi.

Hi Ray, thanks for the offer for help. I created the second account 'hjyamauchi' with the goal of integrating it with the login with my github account hjyamauchi@ and matching the github username and the phabricator username. Maybe that was my confusion around the github migration and it'd have been possible to switch an existing username/password-based account to a github login? I can log into both accounts. If possible, it might be best to rename 'yamauchi' to 'hjyamauchi' (and remove or rename the current 'hjyamauchi'), keep the review history from 'yamauchi' and integrate that with my github login.

Done! Matching the GitHub account is a good reason and I know others renaming for this reason.

Renamed to hjyamauchi to hjyamauchi-test and renamed yamauchi to hjyamauchi :)
@hjyamauchi contains all the contribution history (all occurrences of @yamauchi in old messages are replaced with @hjyamauchi).

If the result looks good, I can disable hjyamauchi-test so that people will not pick the wrong user.
(Like that I had @maskray0 which has been disabled.)

Thanks! I'll see how the new 'hjyamauchi' works out and let you know. I'll also see if I can integrate it with my github login.

May 20 2023, 6:08 PM · Restricted Project, Restricted Project

May 12 2023

hjyamauchi accepted D150305: ObjCopy: support `--dump-section` on COFF.
May 12 2023, 8:25 AM · Restricted Project, Restricted Project

May 11 2023

hjyamauchi added a comment to D150305: ObjCopy: support `--dump-section` on COFF.
In D150305#4335987, @hjyamauchi-test wrote:

@hjyamauchi If you want to change username, I can help. Do you want to rename yamauchi to another name (which one?) and rename hjyamauchi to yamauchi?
There may also be ways to find passwords for yamauchi.

Hi Ray, thanks for the offer for help. I created the second account 'hjyamauchi' with the goal of integrating it with the login with my github account hjyamauchi@ and matching the github username and the phabricator username. Maybe that was my confusion around the github migration and it'd have been possible to switch an existing username/password-based account to a github login? I can log into both accounts. If possible, it might be best to rename 'yamauchi' to 'hjyamauchi' (and remove or rename the current 'hjyamauchi'), keep the review history from 'yamauchi' and integrate that with my github login.

Done! Matching the GitHub account is a good reason and I know others renaming for this reason.

Renamed to hjyamauchi to hjyamauchi-test and renamed yamauchi to hjyamauchi :)
@hjyamauchi contains all the contribution history (all occurrences of @yamauchi in old messages are replaced with @hjyamauchi).

If the result looks good, I can disable hjyamauchi-test so that people will not pick the wrong user.
(Like that I had @maskray0 which has been disabled.)

May 11 2023, 3:34 PM · Restricted Project, Restricted Project
hjyamauchi added a reviewer for D150305: ObjCopy: support `--dump-section` on COFF: hjyamauchi.
May 11 2023, 3:29 PM · Restricted Project, Restricted Project
MaskRay renamed hjyamauchi from yamauchi to hjyamauchi.
May 11 2023, 2:26 PM
hjyamauchi added a comment to D149800: [WIP][PGO] Add ability to mark cold functions as optsize/minsize/optnone.

This patch uses a cleaner method than the previous effort. There is some differences:

  1. yamauchi's patch works for both iFDO and autoFDO, while this patch limits to iFDO
  2. yamauchi's patch also handles size optimization (IIRC) at granularity smaller than function

Longer term, the previous functionality should fold into the new framework.

May 11 2023, 2:11 PM · Restricted Project, Restricted Project, Restricted Project

Apr 17 2023

hjyamauchi committed rG3233ea3a9f95: [WebAssembly][NFC] Fix typos. (authored by hjyamauchi).
[WebAssembly][NFC] Fix typos.
Apr 17 2023, 2:29 PM · Restricted Project, Restricted Project
hjyamauchi closed D148567: [WebAssembly][NFC] Fix typos..
Apr 17 2023, 2:29 PM · Restricted Project, Restricted Project
hjyamauchi requested review of D148567: [WebAssembly][NFC] Fix typos..
Apr 17 2023, 1:54 PM · Restricted Project, Restricted Project

Jun 14 2021

hjyamauchi added a comment to D103867: [CHR] Don't run ControlHeightReduction if any BB has address taken.

Late to this, but LGTM.

Jun 14 2021, 9:53 AM · Restricted Project

Mar 11 2021

hjyamauchi committed rG365b225d4618: [PGO] Fix two issues in PGOMemOPSizeOpt. (authored by hjyamauchi).
[PGO] Fix two issues in PGOMemOPSizeOpt.
Mar 11 2021, 9:53 AM
hjyamauchi closed D97592: [PGO] Fix two issues in PGOMemOPSizeOpt..
Mar 11 2021, 9:53 AM · Restricted Project, Restricted Project

Mar 4 2021

hjyamauchi updated the diff for D97592: [PGO] Fix two issues in PGOMemOPSizeOpt..

Address comment.

Mar 4 2021, 11:06 AM · Restricted Project, Restricted Project

Mar 1 2021

hjyamauchi added a comment to D97592: [PGO] Fix two issues in PGOMemOPSizeOpt..

Okay added a new test.

Mar 1 2021, 4:13 PM · Restricted Project, Restricted Project
hjyamauchi updated the diff for D97592: [PGO] Fix two issues in PGOMemOPSizeOpt..

Address comment.

Mar 1 2021, 4:13 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D97592: [PGO] Fix two issues in PGOMemOPSizeOpt..

Perhaps add a test case showing that up to 3 ranges can be promoted?

Mar 1 2021, 10:49 AM · Restricted Project, Restricted Project

Feb 26 2021

hjyamauchi requested review of D97592: [PGO] Fix two issues in PGOMemOPSizeOpt..
Feb 26 2021, 3:23 PM · Restricted Project, Restricted Project

Jan 14 2021

hjyamauchi committed rG202d359753d1: [X86] Add the FSRM feature (Fast Short Rep Mov) to Zen3. (authored by hjyamauchi).
[X86] Add the FSRM feature (Fast Short Rep Mov) to Zen3.
Jan 14 2021, 10:48 AM
hjyamauchi closed D94436: [X86] Add the FSRM feature (Fast Short Rep Mov) to Zen3..
Jan 14 2021, 10:47 AM · Restricted Project

Jan 11 2021

hjyamauchi requested review of D94436: [X86] Add the FSRM feature (Fast Short Rep Mov) to Zen3..
Jan 11 2021, 11:06 AM · Restricted Project

Jan 7 2021

hjyamauchi committed rGcf5415c727dd: [PGO][PGSO] Let unroll hints take precedence over PGSO. (authored by hjyamauchi).
[PGO][PGSO] Let unroll hints take precedence over PGSO.
Jan 7 2021, 10:11 AM
hjyamauchi closed D94199: [PGO][PGSO] Let unroll hints take precedence over PGSO..
Jan 7 2021, 10:10 AM · Restricted Project

Jan 6 2021

hjyamauchi requested review of D94199: [PGO][PGSO] Let unroll hints take precedence over PGSO..
Jan 6 2021, 2:44 PM · Restricted Project

Dec 15 2020

hjyamauchi added a comment to D92669: [PGO] Adjust -vp-counters-per-site..

D93281 looks good to me.

Dec 15 2020, 8:33 AM · Restricted Project
hjyamauchi accepted D93281: [PGO] Allow overriding -vp-counters-per-site.
Dec 15 2020, 8:31 AM · Restricted Project

Dec 14 2020

hjyamauchi updated subscribers of D92669: [PGO] Adjust -vp-counters-per-site..

I can add "cl::ZeroOrMore" to "-vp-counters-per-site". Would it be good?

Dec 14 2020, 12:06 PM · Restricted Project

Dec 11 2020

hjyamauchi committed rGa5f5612263ca: [PGO] Adjust -vp-counters-per-site under dynamic linking. (authored by hjyamauchi).
[PGO] Adjust -vp-counters-per-site under dynamic linking.
Dec 11 2020, 9:43 AM
hjyamauchi closed D92669: [PGO] Adjust -vp-counters-per-site..
Dec 11 2020, 9:43 AM · Restricted Project

Dec 10 2020

hjyamauchi added inline comments to D92669: [PGO] Adjust -vp-counters-per-site..
Dec 10 2020, 1:38 PM · Restricted Project

Dec 9 2020

hjyamauchi added a comment to D92669: [PGO] Adjust -vp-counters-per-site..

The size increase is significant. It is likely that some very large apps may run into size limit issue at link time with this change.

Dec 9 2020, 3:31 PM · Restricted Project
hjyamauchi updated the diff for D92669: [PGO] Adjust -vp-counters-per-site..

Adjust only for dynamic linking mode. Rebase.

Dec 9 2020, 3:29 PM · Restricted Project

Dec 7 2020

hjyamauchi added a comment to D92669: [PGO] Adjust -vp-counters-per-site..

how much size increase is in clang instrumented build?

Dec 7 2020, 9:27 AM · Restricted Project

Dec 4 2020

hjyamauchi committed rGf9c3954a6ec5: Fix for Bug 48055. (authored by hjyamauchi).
Fix for Bug 48055.
Dec 4 2020, 11:06 AM
hjyamauchi closed D92599: Fix for Bug 48055..
Dec 4 2020, 11:06 AM · Restricted Project
hjyamauchi updated the diff for D92599: Fix for Bug 48055..

Address comment.

Dec 4 2020, 10:29 AM · Restricted Project
hjyamauchi added a comment to D81682: [PGO] Extend the value profile buckets for mem op sizes..

https://reviews.llvm.org/D92669 should fix the issue.

Dec 4 2020, 9:59 AM · Restricted Project, Restricted Project
hjyamauchi requested review of D92669: [PGO] Adjust -vp-counters-per-site..
Dec 4 2020, 9:57 AM · Restricted Project
hjyamauchi added a comment to D60793: [Evaluator] Walk initial elements when handling load through bitcast.

Uploaded https://reviews.llvm.org/D92599

Dec 4 2020, 9:34 AM · Restricted Project
hjyamauchi updated the summary of D92599: Fix for Bug 48055..
Dec 4 2020, 9:31 AM · Restricted Project

Dec 3 2020

hjyamauchi requested review of D92599: Fix for Bug 48055..
Dec 3 2020, 12:22 PM · Restricted Project

Dec 2 2020

hjyamauchi added a comment to D60793: [Evaluator] Walk initial elements when handling load through bitcast.

Hi, we encountered this issue https://bugs.llvm.org/show_bug.cgi?id=48055 which reverting this patch seems to make it go away.

Dec 2 2020, 2:08 PM · Restricted Project

Oct 15 2020

hjyamauchi committed rG1ebee7adf896: [PGO] Remove the old memop value profiling buckets. (authored by hjyamauchi).
[PGO] Remove the old memop value profiling buckets.
Oct 15 2020, 10:10 AM
hjyamauchi closed D88838: [PGO] Remove the old memop value profiling buckets..
Oct 15 2020, 10:10 AM · Restricted Project, Restricted Project

Oct 14 2020

hjyamauchi added a comment to D81682: [PGO] Extend the value profile buckets for mem op sizes..

This is with clang trying to PGO itself. Build with -DLLVM_BUILD_INSTRUMENTED=IR -DLLVM_BUILD_RUNTIME=No and use the result to build the LLVM tree again.

https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=318445929&repo=ash&lineNumber=17322

Oct 14 2020, 3:50 PM · Restricted Project, Restricted Project
hjyamauchi added a comment to D81682: [PGO] Extend the value profile buckets for mem op sizes..
In D81682#2168134, @yamauchi wrote:

The re-landing of this patch in 4a539faf74b9b4c25ee3b880e4007564bd5139b0 causes our PGO build of clang to have thousands of

LLVM Profile Warning: Unable to track new values: Running out of static counters.  Consider using option -mllvm -vp-counters-per-site=<n> to allocate more value profile counters at compile time.

Is that expected? Should the cmake set a higher value of -vp-counters-per-site in self-hosted PGO builds?

This has been reverted for now. There was a related issue.

Our build bots still show lots of this warning, is that expected?

Oct 14 2020, 8:33 AM · Restricted Project, Restricted Project

Oct 5 2020

hjyamauchi updated the summary of D88838: [PGO] Remove the old memop value profiling buckets..
Oct 5 2020, 9:57 AM · Restricted Project, Restricted Project
hjyamauchi updated the diff for D88838: [PGO] Remove the old memop value profiling buckets..

Update the patch description.

Oct 5 2020, 9:57 AM · Restricted Project, Restricted Project
hjyamauchi requested review of D88838: [PGO] Remove the old memop value profiling buckets..
Oct 5 2020, 9:54 AM · Restricted Project, Restricted Project

Sep 14 2020

hjyamauchi added a comment to D86890: [compiler-rt] Remove copy of InstrProfData.inc.

I'm not familiar with the history of this file well, but I had the same impression: it'd be nice if there's a single copy but since compiler-rt is set up to build without depending on llvm/, it's in the way it is currently.

Sep 14 2020, 9:13 AM · Restricted Project, Restricted Project

Sep 9 2020

hjyamauchi committed rG0ab6a1569806: [X86] Add support for using fast short rep mov for memcpy lowering. (authored by hjyamauchi).
[X86] Add support for using fast short rep mov for memcpy lowering.
Sep 9 2020, 12:47 PM
hjyamauchi closed D86883: [X86] Add support for using fast short rep mov for memcpy lowering..
Sep 9 2020, 12:47 PM · Restricted Project
hjyamauchi updated the diff for D86883: [X86] Add support for using fast short rep mov for memcpy lowering..

Rebase.

Sep 9 2020, 12:44 PM · Restricted Project
hjyamauchi added inline comments to D86883: [X86] Add support for using fast short rep mov for memcpy lowering..
Sep 9 2020, 12:26 PM · Restricted Project