[PATCH] D119760: [DSE] Fall back to CFG scan for unreachable terminators.
Florian Hahn via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 15 12:08:10 PST 2022
fhahn added inline comments.
================
Comment at: llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:813
+
+ AnyUnreachableExit = !PDT.getRootNode()->getBlock() &&
+ any_of(PDT.roots(), [](const BasicBlock *E) {
----------------
nikic wrote:
> The first check here looks redundant. Doesn't PDT always have virtual root?
It's not needed! Removed.
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