[VPlan] Remove setEntry to avoid leaks when replacing entry.
authorFlorian Hahn <flo@fhahn.com>
Thu, 4 May 2023 18:12:02 +0000 (19:12 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 4 May 2023 18:12:02 +0000 (19:12 +0100)
commitc2bef381fae95c40a8f8af0fa5674fd5640c582f
treead53f1aa9ef4135082b5159bcb7b25255da8c6ef
parent7f00ba08aade787da6ef891156315698959e7af8
[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
https://lab.llvm.org/buildbot/#/builders/5/builds/33455/steps/13/logs/stdio
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.cpp
llvm/lib/Transforms/Vectorize/VPlanHCFGBuilder.h
llvm/unittests/Transforms/Vectorize/VPlanTestBase.h