[all-commits] [llvm/llvm-project] e1bb7f: [LoongArch] Type legalize v2f32 loads by using an ...

Zhaoxin Yang via All-commits all-commits at lists.llvm.org
Wed Mar 11 18:27:07 PDT 2026


  Branch: refs/heads/users/ylzsx/v2f32-load-legalize
  Home:   https://github.com/llvm/llvm-project
  Commit: e1bb7f165a33f1f86623075b6e4d91bec37f0f37
      https://github.com/llvm/llvm-project/commit/e1bb7f165a33f1f86623075b6e4d91bec37f0f37
  Author: yangzhaoxin <yangzhaoxin at loongson.cn>
  Date:   2026-03-11 (Wed, 11 Mar 2026)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
    M llvm/test/CodeGen/LoongArch/vector-fp-imm.ll

  Log Message:
  -----------
  [LoongArch] Type legalize v2f32 loads by using an f64 load and a scalar_to_vector.

On 64-bit targets the generic legalize will use an i64 load and a
scalar_to_vector for us. But on 32-bit targets i64 isn't legal and the
generic legalizer will end up emitting two 32-bit loads.


  Commit: 26f9bf575d777469e96d367d6aba6d61bea9796f
      https://github.com/llvm/llvm-project/commit/26f9bf575d777469e96d367d6aba6d61bea9796f
  Author: yangzhaoxin <yangzhaoxin at loongson.cn>
  Date:   2026-03-12 (Thu, 12 Mar 2026)

  Changed paths:
    M llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp

  Log Message:
  -----------
  fixes according reviews


Compare: https://github.com/llvm/llvm-project/compare/4ad1cb474ddd...26f9bf575d77

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