[PATCH] D68107: [LoopInfo] Remove duplicates in ExitBlocks to reduce the compile time of hasDedicatedExits
    Wei Mi via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Sep 26 22:43:59 PDT 2019
    
    
  
This revision was automatically updated to reflect the committed changes.
Closed by commit rL373045: [LoopInfo] Remove duplicates in ExitBlocks to reduce the compile time of (authored by wmi, committed by ).
Changed prior to commit:
  https://reviews.llvm.org/D68107?vs=222044&id=222081#toc
Repository:
  rL LLVM
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68107/new/
https://reviews.llvm.org/D68107
Files:
  llvm/trunk/include/llvm/Analysis/LoopInfoImpl.h
Index: llvm/trunk/include/llvm/Analysis/LoopInfoImpl.h
===================================================================
--- llvm/trunk/include/llvm/Analysis/LoopInfoImpl.h
+++ llvm/trunk/include/llvm/Analysis/LoopInfoImpl.h
@@ -85,9 +85,9 @@
 bool LoopBase<BlockT, LoopT>::hasDedicatedExits() const {
   // Each predecessor of each exit block of a normal loop is contained
   // within the loop.
-  SmallVector<BlockT *, 4> ExitBlocks;
-  getExitBlocks(ExitBlocks);
-  for (BlockT *EB : ExitBlocks)
+  SmallVector<BlockT *, 4> UniqueExitBlocks;
+  getUniqueExitBlocks(UniqueExitBlocks);
+  for (BlockT *EB : UniqueExitBlocks)
     for (BlockT *Predecessor : children<Inverse<BlockT *>>(EB))
       if (!contains(Predecessor))
         return false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68107.222081.patch
Type: text/x-patch
Size: 752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190927/6b02b9a6/attachment.bin>
    
    
More information about the llvm-commits
mailing list