summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorDavid Green <david.green@arm.com>2023-04-24 22:02:30 +0100
committerDavid Green <david.green@arm.com>2023-04-24 22:02:30 +0100
commit1869a9c225c7ed411a15592d21b277716b65a374 (patch)
tree0a9f941ccb2d812e80ca2fe9f854ce8e49e90072 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parent2bca3f2a92a506997914f335396e124c0a5f87dd (diff)
[LV] Use the known trip count when costing non-tail folded VFs
Now that we store the ScalarCost in the VectorizationFactor it is possible to use it to get a slightly more accurate cost in isMoreProfitable between two vector factors. This extends the logic added in D101726 to non-tail-folded cases, using the costs of `VecCost * (TripCount / VF) + ScalarCost * (TripCount % VF)` to compare VFs where the TripCount is known and we are not folding the tail. This shouldn't alter very much as small trip counts are usually not vectorized, but does seem to help in the testcase where 4 * VF4 is chosen as profitable compared to 2 * VF8 + 4 * scalar. Differential Revision: https://reviews.llvm.org/D147720
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions