[VPlan] Add VPInterleaveRecipe::NeedsMaskForGaps field (NFCI).
authorFlorian Hahn <flo@fhahn.com>
Fri, 7 Apr 2023 12:11:03 +0000 (13:11 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 7 Apr 2023 12:11:03 +0000 (13:11 +0100)
commit11896357d413553a705ea552dbeeaa591c8f66ca
tree1fb2b6b4cf1eaa092275dce30ded592094576593
parent26c17f4b60013e688a9ce764c4c4b088c0e5dcb9
[VPlan] Add VPInterleaveRecipe::NeedsMaskForGaps field (NFCI).

This patch adds a NeedsMaskForGaps field to VPInterleaveRecipe to record
whether a mask for gaps is needed. This removes a dependence on the cost
model in VPlan code-generation.

Reviewed By: Ayal

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