[all-commits] [llvm/llvm-project] c2bef3: [VPlan] Remove setEntry to avoid leaks when replac...

Florian Hahn via All-commits all-commits at lists.llvm.org
Thu May 4 11:12:27 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2bef381fae95c40a8f8af0fa5674fd5640c582f
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2023-05-04 (Thu, 04 May 2023)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/VPlan.h
    M llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
    M llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.h
    M llvm/unittests/Transforms/Vectorize/VPlanTestBase.h

  Log Message:
  [VPlan] Remove setEntry to avoid leaks when replacing entry.

Update the HCFG builder to directly connect the created CFG to the
existing Plan's entry. This allows removing `setEntry`, which can cause
leaks when the existing entry is replaced.

Should fix

More information about the All-commits mailing list