[PATCH] D22959: MachineLoopInfo: add methods findLoopPreheader and getExitingBlock

Sjoerd Meijer via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 29 05:41:01 PDT 2016


SjoerdMeijer created this revision.
SjoerdMeijer added reviewers: bcahoon, kparzysz, spatel, bkramer, jmolloy.
SjoerdMeijer added a subscriber: llvm-commits.

This adds two new utility functions findLoopPreheader and getExitingBlock to MachineLoopInfo.
These functions are refactored and taken from the Hexagon target as they are target independent.

https://reviews.llvm.org/D22959

Files:
  include/llvm/CodeGen/MachineLoopInfo.h
  lib/CodeGen/MachineLoopInfo.cpp
  lib/Target/Hexagon/HexagonHardwareLoops.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22959.66111.patch
Type: text/x-patch
Size: 6751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160729/a9094046/attachment.bin>


More information about the llvm-commits mailing list