[PATCH] D70304: [Loop Peeling] Add possibility to enable peeling on loop nests.

Arkady Shlykov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 15 04:56:48 PST 2019


ashlykov created this revision.
ashlykov added reviewers: fhahn, lebedev.ri.
Herald added subscribers: llvm-commits, zzheng, hiraditya.
Herald added a project: LLVM.

Current peeling implementation bails out in case of loop nests.
The patch introduces the field in TargetTransformInfo structure that
certain targets can use to relax the constraints if it's
profitable (disabled by default).
Also additional option is added to enable peeling manually for
experimenting and testing purposes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70304

Files:
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
  llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
  llvm/test/Transforms/LoopUnroll/peel-loop-conditions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70304.229510.patch
Type: text/x-patch
Size: 7694 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191115/4d6fc1a5/attachment-0001.bin>


More information about the llvm-commits mailing list