[PATCH] D103333: [LoopUnroll] Clean up exit folding (NFC)

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 28 12:01:07 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.

This does some non-functional cleanup of exit folding during unrolling. The two main changes are:

- First rewrite latch->header edges, which is unrelated to exit folding.
- Combine folding for latch and non-latch exits. After the previous change, these use the same logic, with the caveat that for non-latch exits we currently only fold "known non-exit" cases, but not "known exit" cases.

I think this helps a lot to clarify this code and prepare it for future changes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D103333

Files:
  llvm/lib/Transforms/Utils/LoopUnroll.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D103333.348564.patch
Type: text/x-patch
Size: 8066 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210528/19db74e1/attachment.bin>


More information about the llvm-commits mailing list