[all-commits] [llvm/llvm-project] 82c6e9: [Clang][Test] Add llvm-lto, llvm-lto2 and llvm-pro...

WÁNG Xuěruì via All-commits all-commits at lists.llvm.org
Tue Feb 14 17:16:52 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82c6e90d6a3d6773372b845a246adfed1682cb65
      https://github.com/llvm/llvm-project/commit/82c6e90d6a3d6773372b845a246adfed1682cb65
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M clang/test/lit.cfg.py

  Log Message:
  -----------
  [Clang][Test] Add llvm-lto, llvm-lto2 and llvm-profdata to the tool substitutions list

Similar to issue fixed in D107155, some lit tests invoke `llvm-lto`,
`llvm-lto2` and `llvm-profdata` without going through the substitution
system. While the test runner correctly picks up these binaries from
the build directory, it doesn't print its absolute path. When copying
the invocations when reproducing test failures, this can result in
`command not found: llvm-lto` or other errors (caused by using wrong
version of the tool).

This patch adds these tools to the `tools` variable in
`clang/test/lit.cfg.py` which will then call add_tool_substitutions.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D143806


  Commit: dcf9c60a538c03628656e5b13fac9a913bcd922f
      https://github.com/llvm/llvm-project/commit/dcf9c60a538c03628656e5b13fac9a913bcd922f
  Author: WANG Xuerui <git at xen0n.name>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M llvm/test/CodeGen/LoongArch/ir-instruction/add.ll

  Log Message:
  -----------
  [LoongArch] Add baseline tests for `addu16i.d` codegen. NFC

Reviewed By: gonglingqin

Differential Revision: https://reviews.llvm.org/D143846


  Commit: 2b8cb7d87fcb7c93ea4e60bed6185f05308c98f1
      https://github.com/llvm/llvm-project/commit/2b8cb7d87fcb7c93ea4e60bed6185f05308c98f1
  Author: WANG Xuerui <git at xen0n.name>
  Date:   2023-02-15 (Wed, 15 Feb 2023)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
    M llvm/test/CodeGen/LoongArch/ir-instruction/add.ll

  Log Message:
  -----------
  [LoongArch] Make use of addu16i.d for adds with suitable immediates

Ideally `addu16i.d` could be paired with `{ld,st}ptr` for faster memory
accesses with 32-bit-aligned offsets (it was designed for this purpose),
but it would require more work and the original use case (GP-relative
accesses) does not exist any more with the current LoongArch psABI.

It could still be used for accelerating additions of certain constants
though, which is what this patch intends to do.

Reviewed By: SixWeining, gonglingqin

Differential Revision: https://reviews.llvm.org/D143710


Compare: https://github.com/llvm/llvm-project/compare/6adf92026ee5...2b8cb7d87fcb


More information about the All-commits mailing list