[PATCH] D48817: [LoopInfo] Port loop exit interfaces from Loop to LoopBase

Diego Caballero via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 1 22:29:44 PDT 2018


dcaballe created this revision.
dcaballe added reviewers: chandlerc, sanjoy, hfinkel, fhahn.
Herald added subscribers: llvm-commits, rogfer01, bollu.

This patch ports `hasDedicatedExits`, `getUniqueExitBlocks` and
`getUniqueExitBlock` in Loop to LoopBase so that they can be used
from other LoopBase sub-classes. GraphTraits are used to replace the
BasicBlock specific code in the original implementation. These
three interfaces are needed in VPLoop (VPlan).


Repository:
  rL LLVM

https://reviews.llvm.org/D48817

Files:
  include/llvm/Analysis/LoopInfo.h
  include/llvm/Analysis/LoopInfoImpl.h
  lib/Analysis/LoopInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48817.153669.patch
Type: text/x-patch
Size: 7647 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180702/42a77a34/attachment.bin>


More information about the llvm-commits mailing list