[PATCH] D144378: [LoopDataPrefetch] Support metadata llvm.loop.prefetch for prefetch
Jiang Haibo via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 20 04:09:26 PST 2023
Flightor created this revision.
Herald added subscribers: jdoerfert, asbirlea, hiraditya.
Herald added a project: All.
Flightor requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.
Implementation of the actual funtions of #pragma clang loop [no]prefetch
1. If hoist/sink occurs in the load/store instruction, the metadata is
stripped from the instruction.
2. Add support for llvm.loop.prefetch in LoopDataPrefetch.
https://reviews.llvm.org/D144378
Files:
llvm/docs/LangRef.rst
llvm/include/llvm/IR/FixedMetadataKinds.def
llvm/lib/Analysis/VectorUtils.cpp
llvm/lib/Transforms/Scalar/LICM.cpp
llvm/lib/Transforms/Scalar/LoopDataPrefetch.cpp
llvm/test/Transforms/LICM/hoist-load-with-prefetch.ll
llvm/test/Transforms/LoopDataPrefetch/pragma-loop-prefetch-noprefetch.ll
llvm/test/Transforms/LoopDataPrefetch/pragma-loop-prefetch-vectorize.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144378.498791.patch
Type: text/x-patch
Size: 39639 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230220/921a3baa/attachment.bin>
More information about the llvm-commits
mailing list