[all-commits] [llvm/llvm-project] 30d6e7: [LoongArch][NFC] Add tests for fixing addsub reloc...

ZhaoQi via All-commits all-commits at lists.llvm.org
Sun Aug 17 19:59:43 PDT 2025


  Branch: refs/heads/users/zhaoqi5/replace-relax-feature-condition
  Home:   https://github.com/llvm/llvm-project
  Commit: 30d6e76ba992a0b56242aff101c778ce0de50b1b
      https://github.com/llvm/llvm-project/commit/30d6e76ba992a0b56242aff101c778ce0de50b1b
  Author: Qi Zhao <zhaoqi01 at loongson.cn>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    A llvm/test/CodeGen/LoongArch/fix-addsub-relocs-with-relax.ll

  Log Message:
  -----------
  [LoongArch][NFC] Add tests for fixing addsub relocs when enabling relax


  Commit: 1a8b15a2c87e9673269a37959a8f3d1eab6512b1
      https://github.com/llvm/llvm-project/commit/1a8b15a2c87e9673269a37959a8f3d1eab6512b1
  Author: Qi Zhao <zhaoqi01 at loongson.cn>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp

  Log Message:
  -----------
  [LoongArch] Use section-relaxable check instead of relax feature from STI

In some cases, such as using lto or llc, relax feature is not
available from this SubtargetInfo (LoongArchAsmBackend is instantiated
too early), causing loss of relocations.

This commit modifiy the condition to check whether the section
which contains the two symbols is relaxable. If not relaxable,
no need to record relocations.


  Commit: c0ecb4849c2f147c3d01741cbee95596857400d9
      https://github.com/llvm/llvm-project/commit/c0ecb4849c2f147c3d01741cbee95596857400d9
  Author: Qi Zhao <zhaoqi01 at loongson.cn>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/test/CodeGen/LoongArch/fix-addsub-relocs-with-relax.ll

  Log Message:
  -----------
  update tests


Compare: https://github.com/llvm/llvm-project/compare/d7be0807af1a...c0ecb4849c2f

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