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

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Sep 12 10:11:29 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 368af7558e55039e4e93c3eed68ce00da86e5e35
      https://github.com/llvm/llvm-project/commit/368af7558e55039e4e93c3eed68ce00da86e5e35
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2021-09-12 (Sun, 12 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.




More information about the All-commits mailing list