[all-commits] [llvm/llvm-project] 3bdbc6: fix partial reduce sumla expression (#209294)

robertvirany via All-commits all-commits at lists.llvm.org
Thu Aug 6 02:17:10 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3bdbc635ce70699bb819bb877e31458bdee83934
      https://github.com/llvm/llvm-project/commit/3bdbc635ce70699bb819bb877e31458bdee83934
  Author: robertvirany <robertvirany at gmail.com>
  Date:   2026-08-06 (Thu, 06 Aug 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
    M llvm/unittests/CodeGen/SelectionDAGNodeConstructionTest.cpp

  Log Message:
  -----------
  fix partial reduce sumla expression (#209294)

Fixes #209193.

`TargetLowering::expandPartialReduceMLA` handled UMLA, SMLA, and FMLA,
but fell through to `llvm_unreachable` when expanding
`PARTIAL_REDUCE_SUMLA`.

This handles SUMLA by sign-extending the signed LHS and zero-extending
the unsigned RHS before multiplication.

The first commit precommits a SelectionDAG unit test that reproduces the
assertion and verifies that expansion creates the expected extensions.



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