[PATCH] D23344: Fix LCSSA increased compile time

Rong Xu via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 10 10:57:02 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL278250: Fix LCSSA increased compile time (authored by xur).

Changed prior to commit:
  https://reviews.llvm.org/D23344?vs=67466&id=67552#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D23344

Files:
  llvm/trunk/lib/Transforms/Utils/LCSSA.cpp

Index: llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
+++ llvm/trunk/lib/Transforms/Utils/LCSSA.cpp
@@ -186,14 +186,14 @@
 
       // Otherwise, do full PHI insertion.
       SSAUpdate.RewriteUse(*UseToRewrite);
+    }
 
-      // SSAUpdater might have inserted phi-nodes inside other loops. We'll need
-      // to post-process them to keep LCSSA form.
-      for (PHINode *InsertedPN : InsertedPHIs) {
-        if (auto *OtherLoop = LI.getLoopFor(InsertedPN->getParent()))
-          if (!L->contains(OtherLoop))
-            PostProcessPHIs.push_back(InsertedPN);
-      }
+    // SSAUpdater might have inserted phi-nodes inside other loops. We'll need
+    // to post-process them to keep LCSSA form.
+    for (PHINode *InsertedPN : InsertedPHIs) {
+      if (auto *OtherLoop = LI.getLoopFor(InsertedPN->getParent()))
+        if (!L->contains(OtherLoop))
+          PostProcessPHIs.push_back(InsertedPN);
     }
 
     // Post process PHI instructions that were inserted into another disjoint


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23344.67552.patch
Type: text/x-patch
Size: 1107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160810/2bb71af5/attachment.bin>


More information about the llvm-commits mailing list