[PATCH] D104487: [LoopUnroll] Push runtime unrolling decision up into tryToUnrollLoop()

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 17 13:44:17 PDT 2021


nikic created this revision.
nikic added a reviewer: reames.
Herald added subscribers: zzheng, hiraditya.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Currently, UnrollLoop() is passed an AllowRuntime flag and decides itself whether runtime unrolling should be used or not. This patch pushes the decision into the caller and allows us to eliminate the ULO.TripCount and ULO.TripMultiple parameters.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D104487

Files:
  llvm/include/llvm/Transforms/Utils/UnrollLoop.h
  llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
  llvm/lib/Transforms/Utils/LoopUnroll.cpp
  llvm/lib/Transforms/Utils/LoopUnrollAndJam.cpp
  llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104487.352834.patch
Type: text/x-patch
Size: 8833 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210617/63da8863/attachment.bin>


More information about the llvm-commits mailing list