OSDN Git Service

[LV] Model if-converted phi node costs
authorMatthew Simpson <mssimpso@codeaurora.org>
Fri, 21 Apr 2017 14:14:54 +0000 (14:14 +0000)
committerMatthew Simpson <mssimpso@codeaurora.org>
Fri, 21 Apr 2017 14:14:54 +0000 (14:14 +0000)
commit915a4bc0f9f60eae0e07381134aa7d63fe0bdda8
tree6c4f8ea2039167dd1864583107e6656e3a482377
parent9eb6db17b6a6c0f497f681471384b396024932a9
[LV] Model if-converted phi node costs

Phi nodes in non-header blocks are converted to select instructions after
if-conversion. This patch updates the cost model to account for the selects.

Differential Revision: https://reviews.llvm.org/D31906

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300980 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/phi-cost.ll [new file with mode: 0644]