[PATCH] D138719: Expand loop peeling phi computation to handle binary ops and casts

Jamie Schmeiser via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 25 07:34:39 PST 2022


jamieschmeiser created this revision.
jamieschmeiser added reviewers: mkazantsev, LoopOptWG.
Herald added subscribers: zzheng, hiraditya.
Herald added a project: All.
jamieschmeiser requested review of this revision.
Herald added a project: LLVM.

Expand the capabilities of the code for computing how many peels are
needed to make phis determined.  A cast gets the peel count for the
value being casted while a binary op gets the maximum of the operands.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138719

Files:
  llvm/lib/Transforms/Utils/LoopPeel.cpp
  llvm/test/Transforms/LoopUnroll/peel-loop-phi-analysis.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138719.477963.patch
Type: text/x-patch
Size: 6255 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221125/e42c11ff/attachment.bin>


More information about the llvm-commits mailing list