OSDN Git Service

[LoopVectorize] Improve getVectorCallCost() getScalarizationOverhead() call.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Mon, 30 Jan 2017 05:38:05 +0000 (05:38 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Mon, 30 Jan 2017 05:38:05 +0000 (05:38 +0000)
commit54490fc7caf3354934dc73321e0bbe1d17df7d4f
tree28bf9fe1eddeff36d7df9b63b03e77c6a80d10b5
parent8b0f69514cbb163d08c713854afef8b88f718764
[LoopVectorize] Improve getVectorCallCost() getScalarizationOverhead() call.

By calling getScalarizationOverhead with the CallInst instead of the types of
its arguments, we make sure that only unique call arguments are added to the
scalarization cost.

getScalarizationOverhead() is extended to handle calls by only passing on the
actual call arguments (which is not all the operands).

This also eliminates a wrapper function with the same name.

review: Hal Finkel

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