[PATCH] D121008: [MicroBenchmarks] Add benchmarks for vector memory check generation.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 4 09:30:38 PST 2022


fhahn created this revision.
fhahn added reviewers: Meinersbur, dmgreen, lebedev.ri.
Herald added a subscriber: mgorny.
Herald added a project: All.
fhahn requested review of this revision.

This patch adds an initial set of benchmarks for memory runtime check
generation.

It comes with a function that takes 4 pointers and accesses them in a
vectorizable inner loop, but it requires runtime checks. The outer loop
should increase the contribution of the runtime checks to the overall
runtime.

The function is then used to benchmark multiple different scenarios
where all pointers are completely disjoint or overlap in different ways.

The goal of the initial benchmarks is to measure the impact of D119078 <https://reviews.llvm.org/D119078>.

The current benchmarks focus on cases that can be supported by the initial
version of  D119078 <https://reviews.llvm.org/D119078>, but should be extended as more cases can be handled.


Repository:
  rT test-suite

https://reviews.llvm.org/D121008

Files:
  MicroBenchmarks/LoopVectorization/CMakeLists.txt
  MicroBenchmarks/LoopVectorization/RuntimeChecks.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121008.413042.patch
Type: text/x-patch
Size: 5201 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220304/ac2a63e7/attachment.bin>


More information about the llvm-commits mailing list