[all-commits] [llvm/llvm-project] 1916a1: [VPlan] Fix crash caused by not updating all users...

Florian Hahn via All-commits all-commits at lists.llvm.org
Mon Sep 13 20:56:54 PDT 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 1916a1c578f862fbabc3dfdec59c9ee9b76984b4
      https://github.com/llvm/llvm-project/commit/1916a1c578f862fbabc3dfdec59c9ee9b76984b4
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-09-13 (Mon, 13 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
    M llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll

  Log Message:
  -----------
  [VPlan] Fix crash caused by not updating all users properly.

Users of VPValues are managed in a vector, so we need to be more
careful when iterating over users while updating them. For now, just
copy them.

Fixes 51798.

(cherry picked from commit 368af7558e55039e4e93c3eed68ce00da86e5e35)




More information about the All-commits mailing list