[PATCH] D141487: [LoopUnroll] Directly update DT instead of DTU.

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 11 08:26:57 PST 2023


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/Local.cpp:3530
+  if (pred_empty(BB)) {
+    DT->eraseNode(BB);
+    return;
----------------
What about the case where BB has a (now also unreachable) successor? Don't we have to erase all those nodes as well?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D141487



More information about the llvm-commits mailing list