[all-commits] [llvm/llvm-project] b21155: [LoongArch] Precommit test case to show bug in Loo...

Lu Weining via All-commits all-commits at lists.llvm.org
Mon Jul 7 17:22:18 PDT 2025


  Branch: refs/heads/release/20.x
  Home:   https://github.com/llvm/llvm-project
  Commit: b21155f97a0a9682fdea0cb074c8f4687a4cbd35
      https://github.com/llvm/llvm-project/commit/b21155f97a0a9682fdea0cb074c8f4687a4cbd35
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2025-07-07 (Mon, 07 Jul 2025)

  Changed paths:
    A llvm/test/CodeGen/LoongArch/isel-optnone.ll

  Log Message:
  -----------
  [LoongArch] Precommit test case to show bug in LoongArchISelDagToDag

The optimization level should not be restored into O2.

(cherry picked from commit fcc82cfa9394b2bd4380acdcf0e2854caee5a47a)


  Commit: 1daceb20611fe04313cb024aa427793039267f8c
      https://github.com/llvm/llvm-project/commit/1daceb20611fe04313cb024aa427793039267f8c
  Author: Weining Lu <luweining at loongson.cn>
  Date:   2025-07-07 (Mon, 07 Jul 2025)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArch.h
    M llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
    M llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.h
    M llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
    M llvm/test/CodeGen/LoongArch/O0-pipeline.ll
    M llvm/test/CodeGen/LoongArch/isel-optnone.ll
    M llvm/test/CodeGen/LoongArch/spill-ra-without-kill.ll

  Log Message:
  -----------
  [LoongArch] Pass OptLevel to LoongArchDAGToDAGISel correctly

Like many other targets did. And see RISCV for similar fix.

Fix https://github.com/llvm/llvm-project/issues/143239

(cherry picked from commit 90a52f4942961a5c32afc69d69470c6b7e5bcb8a)


Compare: https://github.com/llvm/llvm-project/compare/da18fb9f04ce...1daceb20611f

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