Skip to content

Commit 3273ea4

Browse files
authored
[LV] Cache call vectorization decisions (#66521)
LoopVectorize currently queries VFDatabase repeatedly for each CI, and each query to VFDatabase rescans all vector variants. This patch instead makes a decision for each call once per VF based on the cost of scalarization vs. function call to a vector variant of the function vs. a vector intrinsic, then caches the decision along with relevant info for use in planning and plan execution.
1 parent 072675f commit 3273ea4

File tree

1 file changed

+214
-119
lines changed

1 file changed

+214
-119
lines changed

0 commit comments

Comments
 (0)