[LV] Update recipe builder functions to pass VPlan directly (NFC).
authorFlorian Hahn <flo@fhahn.com>
Sun, 12 Feb 2023 22:35:14 +0000 (22:35 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sun, 12 Feb 2023 22:35:14 +0000 (22:35 +0000)
commit2e6430666caf303b84dd281442533d2f3b6ad1b2
treeb1e146021cf0a6679ead5872bdc6c28182258d28
parentaf03616f46a1b90c55e2bc51fc27e3638d732533
[LV] Update recipe builder functions to pass VPlan directly (NFC).

Passing VPlanPtr requires a dereference of std::unique_ptr on each
access, which is unnecessary. Just pass the plan by reference.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h