[PATCH] D64557: Add llvm.loop.licm.disable metadata

Tim Corringham via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 04:36:38 PDT 2019


timcorringham created this revision.
Herald added subscribers: llvm-commits, asbirlea.
Herald added a project: LLVM.

For some targets the LICM pass can result in sub-optimal code in some
cases where it would be better not to run the pass, but it isn't
always possible to suppress the transformations heuristically.

Where the front-end has insight into such cases it is beneficial
to attach loop metadata to disable the pass - this change adds the
llvm.loop.licm.disable metadata to enable that.


Repository:
  rL LLVM

https://reviews.llvm.org/D64557

Files:
  include/llvm/Transforms/Utils/LoopUtils.h
  lib/Transforms/Scalar/LICM.cpp
  lib/Transforms/Utils/LoopUtils.cpp
  test/Transforms/LICM/pragma-licm-disable.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64557.209171.patch
Type: text/x-patch
Size: 4076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190711/3f7c988b/attachment.bin>


More information about the llvm-commits mailing list