[PATCH] D64973: [MustExec][NFC] Expose a common LoopSafetyInfo interface

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 19 00:15:41 PDT 2019


jdoerfert created this revision.
jdoerfert added reviewers: reames, fhahn, lebedev.ri, hfinkel, arsenm.
Herald added subscribers: asbirlea, bollu, hiraditya, wdng.
Herald added a project: LLVM.

This patch creates an abstract base class to allow new LoopSafetyInfo
implementations that are not based on the curent LoopSafetyInfo block
coloring. In the process, we added two more specialized methods

  `insertInstructionBefore/After`

which provide more information than the current

  `insertInstructionTo`

method.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D64973

Files:
  llvm/include/llvm/Analysis/MustExecute.h
  llvm/lib/Transforms/Scalar/LICM.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64973.210750.patch
Type: text/x-patch
Size: 7273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190719/948b3560/attachment.bin>


More information about the llvm-commits mailing list