summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ASTWriterStmt.cpp
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-10-30 14:34:15 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-10-30 14:34:15 +0000
commit1f067c94dc003206d32fcdea3d63a004c3dc8ae7 (patch)
treec8bc80dcf6952961a978c12975763153d8ff6f7a /clang/lib/Serialization/ASTWriterStmt.cpp
parent8b207defeac47d7394cb1e68011b031729d77791 (diff)
downloadbcm5719-llvm-1f067c94dc003206d32fcdea3d63a004c3dc8ae7.tar.gz
bcm5719-llvm-1f067c94dc003206d32fcdea3d63a004c3dc8ae7.zip
[LoopVectorizer] Fix for cost values of memory accesses.
This commit is a combination of two patches: * "Fix in getScalarizationOverhead()" If target returns false in TTI.prefersVectorizedAddressing(), it means the address registers will not need to be extracted. Therefore, there should be no operands scalarization overhead for a load instruction. * "Don't pass the instruction pointer from getMemInstScalarizationCost." Since VF is always > 1, this is a cost query for an instruction in the vectorized loop and it should not be evaluated within the scalar context of the instruction. Review: Ulrich Weigand, Hal Finkel https://reviews.llvm.org/D52351 https://reviews.llvm.org/D52417 llvm-svn: 345603
Diffstat (limited to 'clang/lib/Serialization/ASTWriterStmt.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud