[all-commits] [llvm/llvm-project] 315c02: [VPlan] Fix crash with inloop fmuladd reductions w...

Luke Lau via All-commits all-commits at lists.llvm.org
Thu Mar 13 18:08:54 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 315c02aa023e369e571f995c82974813638caf3c
      https://github.com/llvm/llvm-project/commit/315c02aa023e369e571f995c82974813638caf3c
  Author: Luke Lau <luke at igalia.com>
  Date:   2025-03-14 (Fri, 14 Mar 2025)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
    M llvm/test/Transforms/LoopVectorize/reduction-inloop.ll

  Log Message:
  -----------
  [VPlan] Fix crash with inloop fmuladd reductions with blend (#131154)

When visiting in-loop reduction links, we previously crashed if we had
an fmuladd with a blend after it in the chain. This fixes it by lifting
the existing blend folding to also handle fmuladd.

This also simplifies the code structure slightly for an upcoming patch I
want to post to handle in-loop AnyOf reductions.

I removed the PhiR->isInLoop() check since it's already guarded at the
top of the parent Header->Phis() loop.



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