[all-commits] [llvm/llvm-project] 03912a: [GlobalISel] Translate scalar sequential vecreduce...

David Green via All-commits all-commits at lists.llvm.org
Mon Aug 18 08:00:05 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 03912a1de59876011387de9ac5ec968c58018da0
      https://github.com/llvm/llvm-project/commit/03912a1de59876011387de9ac5ec968c58018da0
  Author: David Green <david.green at arm.com>
  Date:   2025-08-18 (Mon, 18 Aug 2025)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-reductions.ll

  Log Message:
  -----------
  [GlobalISel] Translate scalar sequential vecreduce.fadd/fmul as fadd/fmul. (#153966)

A llvm.vector.reduce.fadd(float, <1 x float>) will be translated to
G_VECREDUCE_SEQ_FADD with two scalar operands, which is illegal
according to the verifier. This makes sure we generate a fadd/fmul
instead.



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