[all-commits] [llvm/llvm-project] c9e889: [LoongArch] Generate more PCRel relocations for re...

wanglei via All-commits all-commits at lists.llvm.org
Thu Sep 10 18:07:48 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c9e8899e31dba827a9c738252de1762f3b6fd3df
      https://github.com/llvm/llvm-project/commit/c9e8899e31dba827a9c738252de1762f3b6fd3df
  Author: wanglei <wanglei at loongson.cn>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
    M llvm/test/MC/LoongArch/Relocations/sub-expr.s

  Log Message:
  -----------
  [LoongArch] Generate more PCRel relocations for resolvable sub-symbols

Use PC-relative relocations when the sub-symbol offset can be resolved
during assembly, avoiding ADD/SUB relocation pairs.

Fixes #210052

Reviewers: SixWeining, MaskRay

Reviewed By: MaskRay

Pull Request: https://github.com/llvm/llvm-project/pull/211754



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list