[PATCH] D22699: Refactor - CodeExtractor : Move check for valid block to static utility and add assumption checks.

River Riddle via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 22 14:00:13 PDT 2016


rriddle created this revision.
rriddle added a reviewer: davide.
rriddle added a subscriber: llvm-commits.

Move the static function, checking to see if a block is valid, to the CodeExtractor class a public utility. This lets you actually check to see if a block is valid before trying to extract.
Also add asserts for store emitting and phi fix up to make sure that the result its valid. Code Extractor has a reliance on critical edges being broken.

https://reviews.llvm.org/D22699

Files:
  /Users/rriddle/Desktop/llvm/llvm/include/llvm/Transforms/Utils/CodeExtractor.h
  /Users/rriddle/Desktop/llvm/llvm/lib/Transforms/Utils/CodeExtractor.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22699.65145.patch
Type: text/x-patch
Size: 5807 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160722/0efa8ffa/attachment-0001.bin>


More information about the llvm-commits mailing list