The entry to the plan is guaranteed to be a VPBasicBlock. Make sure this
is the case by adjusting the type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
Looks good to me, with minor nits.
Worth explaining that Entry is the preheader of the vector loop.
llvm/unittests/Transforms/Vectorize/VPDomTreeTest.cpp | ||
---|---|---|
42 | nit: better placed in order, before VPBB1? | |
43 | ? | |
115 | nit: better place VPBB0 in order, before R1BB1? | |
116 | nit: better place right after creating R1? | |
llvm/unittests/Transforms/Vectorize/VPlanTest.cpp | ||
443 | ditto |
Comment Actions
Rebase so this can be applied on current main and addressed the comments, thanks! I updated the comment for VPlan::Entry and plan to land this shortly.
nit: better placed in order, before VPBB1?