This is an archive of the discontinued LLVM Phabricator instance.

[pragma] Add support for #pragma clang loop prefetch(disable)
Needs ReviewPublic

Authored by Flightor on Mar 15 2023, 3:13 AM.

Details

Summary

Pass LoopDataPrefetch is enabled by default under the Aarch64 architecture,
but this pass cannot always achieve perfect loop data prefetching. In order
to make it easier for developers to do performance debugging, a new pragma
is added so that developers can prohibit a certain loop perform automatic
data prefetch optimization.

Diff Detail