aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorWarren Ristow <warren.ristow@sony.com>2019-06-17 17:20:08 +0000
committerWarren Ristow <warren.ristow@sony.com>2019-06-17 17:20:08 +0000
commit6452bdd29b5a0bd0f902c06046add459f910d335 (patch)
tree73dbbcd0c95a8c83663cfc29775628a019280b09 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent3e140066bce1cbc40604274bd99a0cc2efed01f5 (diff)
downloadllvm-6452bdd29b5a0bd0f902c06046add459f910d335.zip
llvm-6452bdd29b5a0bd0f902c06046add459f910d335.tar.gz
llvm-6452bdd29b5a0bd0f902c06046add459f910d335.tar.bz2
[LV] Suppress vectorization in some nontemporal cases
When considering a loop containing nontemporal stores or loads for vectorization, suppress the vectorization if the corresponding vectorized store or load with the aligment of the original scaler memory op is not supported with the nontemporal hint on the target. This adds two new functions: bool isLegalNTStore(Type *DataType, unsigned Alignment) const; bool isLegalNTLoad(Type *DataType, unsigned Alignment) const; to TTI, leaving the target independent default implementation as returning true, but with overriding implementations for X86 that check the legality based on available Subtarget features. This fixes https://llvm.org/PR40759 Differential Revision: https://reviews.llvm.org/D61764 llvm-svn: 363581
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions