summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorMatthew Simpson <mssimpso@codeaurora.org>2017-05-24 15:26:15 +0000
committerMatthew Simpson <mssimpso@codeaurora.org>2017-05-24 15:26:15 +0000
commitd6f179cad6c93a517d3ab62ed61680678365cde3 (patch)
tree4dd4b15e7c76be17f3cbf06783ea8c9ca7b28726 /clang/lib/Sema
parent5f16986271a47505ccd1f765f3112e9a0f0d7032 (diff)
downloadbcm5719-llvm-d6f179cad6c93a517d3ab62ed61680678365cde3.tar.gz
bcm5719-llvm-d6f179cad6c93a517d3ab62ed61680678365cde3.zip
[LV] Update type in cost model for scalarization
For non-uniform instructions marked for scalarization, we should update `VectorTy` when computing instruction costs to reflect the scalar type. In addition to determining instruction costs, this type is also used to signal that all instructions in the loop will be scalarized. This currently affects memory instructions and non-pointer induction variables and their updates. (We also mark GEPs scalar after vectorization, but their cost is computed together with memory instructions.) For scalarized induction updates, this patch also scales the scalar cost by the vectorization factor, corresponding to each induction step. llvm-svn: 303763
Diffstat (limited to 'clang/lib/Sema')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud