diff options
author | Florian Hahn <flo@fhahn.com> | 2021-08-13 11:23:58 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2021-08-16 09:43:30 +0100 |
commit | 39cc0b8c68b8d316954ecfac0d1f8498ea42866c (patch) | |
tree | af4df0ce455f02b20726296841c934051423dba8 /llvm/lib/Transforms/Utils/LoopUtils.cpp | |
parent | 96d5a501c5d9dac2190cd3f6c812860903021982 (diff) | |
download | llvm-39cc0b8c68b8d316954ecfac0d1f8498ea42866c.zip llvm-39cc0b8c68b8d316954ecfac0d1f8498ea42866c.tar.gz llvm-39cc0b8c68b8d316954ecfac0d1f8498ea42866c.tar.bz2 |
[PhaseOrdering] Add test for missed vectorization with vector::at calls.
This test illustrates missed vectorization of loops with multiple
std::vector::at calls, like
int sum(std::vector<int> *A, std::vector<int> *B, int N) {
int cost = 0;
for (int i = 0; i < N; ++i)
cost += A->at(i) + B->at(i);
return cost;
}
https://clang.godbolt.org/z/KbYoaPhvq
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions