[PATCH] D53706: [MultiTailCallElimination]: Pass to eliminate multiple tail calls

John Brawn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 7 05:23:02 PST 2018


john.brawn added inline comments.


================
Comment at: lib/Transforms/Scalar/MultiTailCallElimination.cpp:1507-1513
+      if (&*BBI == TI)
+        (&*BBI == E) {
+        StaticInst.push_back(&*BBI);
+        // Advance the current iteration interval to next candidate.
+        ++CandI;
+        continue;
+      }
----------------
This doesn't even compile.  If I turn the condition into ((&*BBI == E) || (&*BBI == TI)) or one of those two on their own I get an assertion failure on ++CandI because CandI is Candidates.end().


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D53706/new/

https://reviews.llvm.org/D53706





More information about the llvm-commits mailing list