Files
clang-p2996/llvm/test/Transforms/LoopVectorize/reduction-inloop.ll
Luke Lau 315c02aa02 [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.
2025-03-14 09:08:32 +08:00

77 KiB