[PATCH] D138232: Code for calculating number of loop peels based on phi invariance

Jamie Schmeiser via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 17 12:01:06 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.

Add code to analyze number of loop peels needed to make phis determined.

      

Rework the code for analyzing the number of peels necessary to make
phis deterministic.  Expand the algorithm to handle binary operators
acting on phi values as well as casts.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D138232

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: D138232.476202.patch
Type: text/x-patch
Size: 18457 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221117/fc52072a/attachment.bin>


More information about the llvm-commits mailing list