[VPlan] Turn Plan entry node into VPBasicBlock (NFCI).
authorFlorian Hahn <flo@fhahn.com>
Fri, 28 Apr 2023 11:29:05 +0000 (12:29 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 28 Apr 2023 11:29:06 +0000 (12:29 +0100)
commit2c9d21a2a3593029213df9492b163195e631e491
treec575c717d8fb5b41b1291260942d7a0a36ea4765
parent0fb84bc7fdec1c20c2461e54d5c994939fe5b47f
[VPlan] Turn Plan entry node into VPBasicBlock (NFCI).

The entry to the plan is the preheader of the vector loop and
guaranteed to be a VPBasicBlock. Make sure this is the case by
adjusting the type.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D149005
llvm/lib/Transforms/Vectorize/VPlan.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/unittests/Transforms/Vectorize/VPDomTreeTest.cpp
llvm/unittests/Transforms/Vectorize/VPlanTest.cpp