[PATCH] D104636: [LoopIdiom] [LoopNest] let the pass deal with runtime memset size

Yueh-Ting Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 21 05:38:11 PDT 2021


eopXD created this revision.
Herald added a subscriber: hiraditya.
eopXD requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The LoopNestIdiomRecognize is a LoopNestPass that feeds LoopNest into
LoopIdiomRecognize. The main difference from LoopIdiomRecognize is it
allows runtime-determined store size optimization by versioning and creates
runtime checks on the top-level loop. The reason to only version on the
top-level loop is to avoid the exponential growth of versioning.

LoopNestIdiomRecognize would perform identical to the current
LoopIdiomRecognize if the runtime detects negative value or too-large values.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104636

Files:
  llvm/include/llvm/Transforms/Scalar/LoopIdiomRecognize.h
  llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
  llvm/test/Transforms/LoopIdiom/memset-runtime.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104636.353346.patch
Type: text/x-patch
Size: 19139 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210621/97a3b51e/attachment.bin>


More information about the llvm-commits mailing list