[PATCH] D28724: Use getLoopLatch in place of isLoopSimplifyForm

Xin Tong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 15 11:44:34 PST 2017


trentxintong updated this revision to Diff 84499.
trentxintong added a comment.
Herald added a subscriber: mgorny.

Add an assertion to check that in case we have a single latch, we actually use that
latch to get the loop id. This is the fast case !.

Add a test case to make sure fast case is exercised and works correctly.


https://reviews.llvm.org/D28724

Files:
  lib/Analysis/LoopInfo.cpp
  unittests/Analysis/CMakeLists.txt
  unittests/Analysis/LoopInfoTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28724.84499.patch
Type: text/x-patch
Size: 5174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170115/2fdbef5b/attachment.bin>


More information about the llvm-commits mailing list