diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-01-07 13:58:13 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-01-07 14:21:54 +0000 |
commit | fa6d8977999096b2a3ae1357aa38ddf73abaf414 (patch) | |
tree | fe785e1daa7e261080479a9b3a814978b1abace0 /llvm/lib/Analysis/LoopAccessAnalysis.cpp | |
parent | a2957f80f87f36ac8cfca06dec1c2defbe709876 (diff) | |
download | llvm-fa6d8977999096b2a3ae1357aa38ddf73abaf414.zip llvm-fa6d8977999096b2a3ae1357aa38ddf73abaf414.tar.gz llvm-fa6d8977999096b2a3ae1357aa38ddf73abaf414.tar.bz2 |
[Analysis] MemoryDepChecker::couldPreventStoreLoadForward - remove dead store. NFCI.
As we're breaking from the loop when clamping MaxVF, clang static analyzer was warning that the VF iterator was being updated and never used.
Diffstat (limited to 'llvm/lib/Analysis/LoopAccessAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/LoopAccessAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopAccessAnalysis.cpp b/llvm/lib/Analysis/LoopAccessAnalysis.cpp index be340a3b..76e1725 100644 --- a/llvm/lib/Analysis/LoopAccessAnalysis.cpp +++ b/llvm/lib/Analysis/LoopAccessAnalysis.cpp @@ -1338,7 +1338,7 @@ bool MemoryDepChecker::couldPreventStoreLoadForward(uint64_t Distance, // If the number of vector iteration between the store and the load are // small we could incur conflicts. if (Distance % VF && Distance / VF < NumItersForStoreLoadThroughMemory) { - MaxVFWithoutSLForwardIssues = (VF >>= 1); + MaxVFWithoutSLForwardIssues = (VF >> 1); break; } } |