Page MenuHomePhabricator

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

sinan (Sinan Lin)
User

Projects

User does not belong to any projects.

User Details

User Since
Dec 3 2021, 2:13 AM (94 w, 5 d)

Recent Activity

Mon, Sep 18

sinan committed rG7b4b09a59a75: [Bolt] fix a relocation bug for R_AARCH64_CALL26 (authored by sinan).
[Bolt] fix a relocation bug for R_AARCH64_CALL26
Mon, Sep 18, 4:56 AM · Restricted Project
sinan closed D159513: [Bolt] fix a relocation bug for R_AARCH64_CALL26.
Mon, Sep 18, 4:56 AM · Restricted Project, Restricted Project
sinan added a comment to D159513: [Bolt] fix a relocation bug for R_AARCH64_CALL26.

One more thing. It seems to be without force-patch the encodeValueAArch64 still would be called, but since functions would be moved to the new text there won't be negative address problem. I don't think there is a better way then using force-funcs so it would fail to patch entries & functions would stay on its current place, but please:

  1. Please write the reason of using force-funcs option in the test, because after some time even I won't remember what I wrote above :)
  2. Please add checks on llvm-bolt output that func1 and func2 were failed to patch and won't be optimised, since otherwise the test might pass, but the problem won't be checked. Alternatively (maybe even better) please check that in output binary the addresses are func1 < _start < func2. Maybe I would do both since the first option also shows more clearly why force-patch was used, but it's up to you.

Thanks!

Mon, Sep 18, 2:30 AM · Restricted Project, Restricted Project
sinan updated the diff for D159513: [Bolt] fix a relocation bug for R_AARCH64_CALL26.

update the test case.

  1. check address order with llvm-nm --numeric-sort;
  2. check the message of fail to patch entries;
  3. add comment
Mon, Sep 18, 1:33 AM · Restricted Project, Restricted Project

Thu, Sep 14

sinan added a comment to D159513: [Bolt] fix a relocation bug for R_AARCH64_CALL26.

Yes, you are absolutely right. This is my mistake, I didn't consider the sign bit when performing the right shift.

Thank you for your correction; I'm just getting started in this field, and I'll improve the quality of the patches I submit in the future.

Let's wait for the opinion from the Meta team.

Thu, Sep 14, 4:34 AM · Restricted Project, Restricted Project
sinan updated the diff for D159513: [Bolt] fix a relocation bug for R_AARCH64_CALL26.

Merged into test case bolt/test/AArch64/reloc-call26.s

Thu, Sep 14, 4:31 AM · Restricted Project, Restricted Project
sinan requested review of D159513: [Bolt] fix a relocation bug for R_AARCH64_CALL26.
Thu, Sep 14, 2:13 AM · Restricted Project, Restricted Project

Thu, Aug 31

sinan accepted D136237: [BasicBlockSections] avoid insertting redundant branch to fall through blocks.

LGTM, thanks for continuing this work.

Thu, Aug 31, 8:15 AM · Restricted Project, Restricted Project

Wed, Aug 30

sinan requested review of D159177: [BOLT] Fix a bug related to iterators in ReorderData pass.
Wed, Aug 30, 1:17 AM · Restricted Project, Restricted Project

Feb 15 2023

sinan added a comment to D142975: [AsmPrinter] Allow .cfi_restore_state to be put at the end of a function.

gentle ping ...

Feb 15 2023, 6:41 PM · Restricted Project, Restricted Project

Jan 31 2023

sinan added a comment to D142975: [AsmPrinter] Allow .cfi_restore_state to be put at the end of a function.

Another way to avoid this mismatch is to set such blocks as 'Reachable' in CFIFixup, but it looks a bit different from the 'Unreachable block' case in CFIFixup to me and I think we still need a restore_state in the empty block. Any idea?

Jan 31 2023, 5:37 AM · Restricted Project, Restricted Project
sinan requested review of D142975: [AsmPrinter] Allow .cfi_restore_state to be put at the end of a function.
Jan 31 2023, 5:36 AM · Restricted Project, Restricted Project
sinan requested review of D142974: [AArch64] Avoid using JumpTableEntryInfo when lowering jump tables when it is not initialized.
Jan 31 2023, 4:41 AM · Restricted Project, Restricted Project

Nov 17 2022

sinan committed rG2caf1de1b87c: Fix broken CI (authored by sinan).
Fix broken CI
Nov 17 2022, 1:26 AM · Restricted Project, Restricted Project
sinan closed D138188: Fix broken CI.
Nov 17 2022, 1:25 AM · Restricted Project, Restricted Project

Nov 16 2022

sinan requested review of D138188: Fix broken CI.
Nov 16 2022, 11:55 PM · Restricted Project, Restricted Project
sinan committed rG4ad8952d2d89: [CodeGen][BasicBlockSections] Fix wrong alignment directive placement in (authored by sinan).
[CodeGen][BasicBlockSections] Fix wrong alignment directive placement in
Nov 16 2022, 11:03 PM · Restricted Project, Restricted Project
sinan closed D137535: [CodeGen][BasicBlockSections] Fix wrong alignment directive placement in basic block section cases.
Nov 16 2022, 11:02 PM · Restricted Project, Restricted Project
sinan updated the diff for D136237: [BasicBlockSections] avoid insertting redundant branch to fall through blocks.

remove the incorrect description.

Nov 16 2022, 7:42 PM · Restricted Project, Restricted Project

Nov 9 2022

sinan updated the diff for D136237: [BasicBlockSections] avoid insertting redundant branch to fall through blocks.

update the patch according to suggestions.

Nov 9 2022, 7:32 PM · Restricted Project, Restricted Project
sinan updated the diff for D137535: [CodeGen][BasicBlockSections] Fix wrong alignment directive placement in basic block section cases.

update the test case. This test case is generated after basic-block-sections pass and the name mapping between the basic block(bb.2.entry (align 256, bbsections 2)) and the label name(test.__part.2) from the assembly can be clearer in this way.

Nov 9 2022, 6:43 PM · Restricted Project, Restricted Project

Nov 7 2022

sinan updated the summary of D137535: [CodeGen][BasicBlockSections] Fix wrong alignment directive placement in basic block section cases.
Nov 7 2022, 12:40 AM · Restricted Project, Restricted Project
sinan added a comment to D136237: [BasicBlockSections] avoid insertting redundant branch to fall through blocks.

Hi @rahmanl, Sorry for the delay. I did not find any countercase for just checking the last terminator, and I spent some time investigating a pattern:

Nov 7 2022, 12:36 AM · Restricted Project, Restricted Project
sinan updated the diff for D136237: [BasicBlockSections] avoid insertting redundant branch to fall through blocks.

update according to comments

Nov 7 2022, 12:30 AM · Restricted Project, Restricted Project
sinan requested review of D137535: [CodeGen][BasicBlockSections] Fix wrong alignment directive placement in basic block section cases.
Nov 7 2022, 12:25 AM · Restricted Project, Restricted Project

Oct 20 2022

sinan added inline comments to D136237: [BasicBlockSections] avoid insertting redundant branch to fall through blocks.
Oct 20 2022, 6:03 AM · Restricted Project, Restricted Project
sinan added a comment to D136237: [BasicBlockSections] avoid insertting redundant branch to fall through blocks.

Hi @rahmanl, I tested with -O2, and the redundant branch can be removed by machine code sinking pass.

Oct 20 2022, 5:53 AM · Restricted Project, Restricted Project

Oct 19 2022

sinan updated the diff for D136237: [BasicBlockSections] avoid insertting redundant branch to fall through blocks.

simplify code

Oct 19 2022, 5:56 AM · Restricted Project, Restricted Project
sinan requested review of D136237: [BasicBlockSections] avoid insertting redundant branch to fall through blocks.
Oct 19 2022, 2:19 AM · Restricted Project, Restricted Project

Sep 27 2022

sinan added inline comments to D134600: [RISCV][LLD] Add RISCV zcmt optimise in linker relaxation.
Sep 27 2022, 1:37 AM · Restricted Project, Restricted Project

Sep 5 2022

sinan requested review of D133308: [cmake] do not set execution permission to regular files.
Sep 5 2022, 8:11 AM · Restricted Project, Restricted Project, Restricted Project

Sep 1 2022

sinan requested review of D133160: [cmake] Append CLANG_LIBDIR_SUFFIX to scan-build-py installation destination..
Sep 1 2022, 3:06 PM · Restricted Project, Restricted Project

Aug 2 2022

sinan accepted D128822: [FuncSpec] Partially revert rG8b360c69e9e3..

Sounds fine. I tend to accept this patch since it is a stepping stone for the patch series, and we can revisit the constant expression case later after all patches merged.

Aug 2 2022, 12:20 AM · Restricted Project, Restricted Project

Jul 25 2022

sinan added reviewers for D130461: [CodeMetrics] use hasOneLiveUse instead of hasOneUse while analyzing inlinable callsites: fhahn, nikic.
Jul 25 2022, 12:41 AM · Restricted Project, Restricted Project
sinan requested review of D130461: [CodeMetrics] use hasOneLiveUse instead of hasOneUse while analyzing inlinable callsites.
Jul 25 2022, 12:36 AM · Restricted Project, Restricted Project

Jul 11 2022

sinan added a comment to D126455: [FuncSpec] Make the Function Specializer part of the IPSCCP pass..

tryToReplaceWithConstant method in SCCP does not update the lattice value map at SCCPSolver, and it might lead to a problem that

Jul 11 2022, 11:15 PM · Restricted Project, Restricted Project
sinan added a comment to D128822: [FuncSpec] Partially revert rG8b360c69e9e3..

The reason why test cases crash at Solver.getLatticeValueFor is that SCCPSolver does not track the lattice value of a callbase argument. However, it is doable for SCCPSolver to track the lattice value of a ConstantExpr, and that is why I think skipping ConstantExpr is not an sound solution.

Jul 11 2022, 10:53 PM · Restricted Project, Restricted Project

Jun 1 2022

sinan added a comment to D126355: [FuncSpec]Fix assertion failure when lattice value is not found..

We should generate a patch with option -U9999 to offer more context to review.

Thanks for working on this. Have you measured any performance/code size change?

Also, I feel we could do better since we've already mark it as overrefined in https://github.com/llvm/llvm-project/blob/cd2292ef824591cc34cc299910a3098545c840c7/llvm/lib/Transforms/Utils/SCCPSolver.cpp#L1254
So it looks possible to get the lattice successfully.

Jun 1 2022, 10:24 PM · Restricted Project, Restricted Project

May 25 2022

sinan added a comment to D126355: [FuncSpec]Fix assertion failure when lattice value is not found..

We should generate a patch with option -U9999 to offer more context to review.

Thanks for the info and feedback. I have updated the diff file.

May 25 2022, 8:37 PM · Restricted Project, Restricted Project
sinan updated the diff for D126355: [FuncSpec]Fix assertion failure when lattice value is not found..
May 25 2022, 8:19 PM · Restricted Project, Restricted Project
sinan requested review of D126355: [FuncSpec]Fix assertion failure when lattice value is not found..
May 25 2022, 12:52 AM · Restricted Project, Restricted Project