[PATCH] D76390: [JumpThreading] Fix infinite loop (PR44611)

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 19 12:02:07 PDT 2020


efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.

LGTM with one minor change



================
Comment at: llvm/lib/Transforms/Scalar/JumpThreading.cpp:2137
+  // would keep peeling one iteration from PredBB.
+  if (llvm::find(successors(PredBB), PredBB) != succ_end(PredBB))
+    return false;
----------------
llvm::is_contained


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D76390





More information about the llvm-commits mailing list