[LoopVectorizer] NFC: Propagate ElementCount to more interfaces.
authorSander de Smalen <sander.desmalen@arm.com>
Tue, 10 Nov 2020 08:32:23 +0000 (08:32 +0000)
committerSander de Smalen <sander.desmalen@arm.com>
Tue, 10 Nov 2020 11:11:02 +0000 (11:11 +0000)
commitf47573f9bfe55137c10d88c8e30c2974ec375062
tree2cc3ac9ac0c732b67101c2f6f360bf3f44be062d
parent311cca8bbf882cd93124d5ee9f40ee47f5e1f57d
[LoopVectorizer] NFC: Propagate ElementCount to more interfaces.

Interfaces changed to take `ElementCount` as parameters:
* LoopVectorizationPlanner::buildVPlans
* LoopVectorizationPlanner::buildVPlansWithVPRecipes
* LoopVectorizationCostModel::selectVectorizationFactor

This patch is NFC for fixed-width vectors.

Reviewed By: dmgreen, ctetreau

Differential Revision: https://reviews.llvm.org/D90879
llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp