[PATCH] D35411: [SimplifyCFG] Defer folding unconditional branches to LateSimplifyCFG if it can destroy canonical loop structure.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 18 14:11:14 PDT 2017


efriedma added a comment.

Yes, please split.



================
Comment at: lib/CodeGen/CodeGenPrepare.cpp:669
+    if (Latches.count(BB))
+      Latches.erase(BB);
+    Preheaders.erase(BB);
----------------
You missed the other redundant if.


https://reviews.llvm.org/D35411





More information about the llvm-commits mailing list