[LV] Move runtime pointer size check to LVP::plan().
authorFlorian Hahn <flo@fhahn.com>
Mon, 29 Mar 2021 12:29:34 +0000 (13:29 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 29 Mar 2021 13:12:29 +0000 (14:12 +0100)
commit25fbe803d4dbcf8ff3a3a9ca161f5b9a68353ed0
tree735e6a3be054288cf8e9d847dd6964c38889a2c3
parentab728717033acef1566a57f6e749d282262a4881
[LV] Move runtime pointer size check to LVP::plan().

This removes the need for the remaining doesNotMeet check and instead
directly checks if there are too many runtime checks for vectorization
in the planner.

A subsequent patch will adjust the logic used to decide whether to
vectorize with runtime to consider their cost more accurately.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D98634
llvm/include/llvm/Transforms/Vectorize/LoopVectorizationLegality.h
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/LTO/X86/diagnostic-handler-remarks.ll
llvm/test/Transforms/LoopVectorize/X86/runtime-limit.ll [moved from llvm/test/Transforms/LoopVectorize/runtime-limit.ll with 86% similarity]