[PATCH] D105374: [SimplifyCFG] simplifyUnreachable(): erase instructions iff they are guaranteed to transfer execution to unreachable

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 2 14:26:31 PDT 2021


efriedma added inline comments.


================
Comment at: llvm/lib/Transforms/Utils/SimplifyCFG.cpp:4685
+    // involves a bit of subtle reasoning. If this inst is an EH,
+    // all the predecessors of this block will be the unwind edges of Invokes,
+    // and we can therefore guarantee this block will be erased.
----------------
Invoke or catchswitch.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105374



More information about the llvm-commits mailing list