[PATCH] D92985: [SystemZTTIImpl::getMinPrefetchStride] Allow some non-prefetched mem accesses.
Jonas Paulsson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 11 16:08:21 PST 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0c2d23933f06: [SystemZTTIImpl] Allow some non-prefetched accesses in getMinPrefetchStride(). (authored by jonpa).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92985/new/
https://reviews.llvm.org/D92985
Files:
llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
Index: llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
===================================================================
--- llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
+++ llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
@@ -341,8 +341,8 @@
// Emit prefetch instructions for smaller strides in cases where we think
// the hardware prefetcher might not be able to keep up.
- if (NumStridedMemAccesses > 32 &&
- NumStridedMemAccesses == NumMemAccesses && !HasCall)
+ if (NumStridedMemAccesses > 32 && !HasCall &&
+ (NumMemAccesses - NumStridedMemAccesses) * 32 <= NumStridedMemAccesses)
return 1;
return ST->hasMiscellaneousExtensions3() ? 8192 : 2048;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D92985.311331.patch
Type: text/x-patch
Size: 708 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201212/83d4dcbc/attachment.bin>
More information about the llvm-commits
mailing list