HomeFreeBSD

Apply llvm fix for assertion/crash building math/vtk

Description

Apply llvm fix for assertion/crash building math/vtk

Merge commit 307ace7f20d5 from llvm git (by David Sherwood):

[LoopVectorize] Ensure the VPReductionRecipe is placed after all it's inputs

When vectorising ordered reductions we call a function
LoopVectorizationPlanner::adjustRecipesForReductions to replace the
existing VPWidenRecipe for the fadd instruction with a new
VPReductionRecipe. We attempt to insert the new recipe in the same
place, but this is wrong because createBlockInMask may have
generated new recipes that VPReductionRecipe now depends upon. I
have changed the insertion code to append the recipe to the
VPBasicBlock instead.

Added a new RUN with tail-folding enabled to the existing test:

  Transforms/LoopVectorize/AArch64/scalable-strict-fadd.ll

Differential Revision: https://reviews.llvm.org/D129550

Reported by: yuri
PR: 264834
MFC after: 3 days

Details

Provenance
dimAuthored on Sep 27 2022, 9:45 PM
Parents
rG9f6f9007b98f: name2oid: use find_oidname
Branches
Unknown
Tags
Unknown