[PATCH] D52154: [LoopInterchange] Preserve LCSSA.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 26 11:39:53 PDT 2018


efriedma added a comment.

Please fix the testcases so the input is in LCSSA form.  (The opt invocation will automatically fix the input if necessary, but it's confusing.)



================
Comment at: lib/Transforms/Scalar/LoopInterchange.cpp:1354
+      ++UI;
+      auto *Usr = dyn_cast<Instruction>(U.getUser());
+      if (Usr && Usr->getParent() != InnerExit) {
----------------
`cast<>`: every user of an Instruction is also an Instruction.


https://reviews.llvm.org/D52154





More information about the llvm-commits mailing list