[PATCH] D119760: [DSE] Fall back to CFG scan for unreachable terminators.
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 15 04:07:26 PST 2022
nikic added a comment.
Please rebase over https://github.com/llvm/llvm-project/commit/2460a2ce47873109e9b300f65e1bd2f4c4b86bfb.
================
Comment at: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:813
+
+ AnyUnreachableExit = !PDT.getRootNode()->getBlock() &&
+ any_of(PDT.roots(), [](const BasicBlock *E) {
----------------
The first check here looks redundant. Doesn't PDT always have virtual root?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D119760/new/
https://reviews.llvm.org/D119760
More information about the llvm-commits
mailing list