OSDN Git Service

[LV] Use getScalarizationOverhead in memory instruction costs (NFC)
authorMatthew Simpson <mssimpso@codeaurora.org>
Wed, 5 Oct 2016 19:11:54 +0000 (19:11 +0000)
committerMatthew Simpson <mssimpso@codeaurora.org>
Wed, 5 Oct 2016 19:11:54 +0000 (19:11 +0000)
commite7491dd00b31bc9c502d08384f050dfab6b85093
treebf5f7e66a8eb53fa95188ff05ee06a636540b751
parent5e827ba37be72d7f2f1c729786b85226b02890e6
[LV] Use getScalarizationOverhead in memory instruction costs (NFC)

This patch refactors the cost estimation of scalarized loads and stores to
reuse getScalarizationOverhead for the cost of the extractelement and
insertelement instructions we might create. The existing code accounted for
this cost, but it was functionally equivalent to the helper function.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@283364 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp