[llvm] [DomTree] Remove unnecessary domtree level check in SemiNCA (NFC) (PR #73107)

Jakub Kuderski via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 22 07:35:16 PST 2023


================
@@ -289,11 +289,6 @@ struct SemiNCAInfo {
         assert(NodeToInfo.contains(N) &&
                "ReverseChildren should not contain unreachable predecessors");
 
-        const TreeNodePtr TN = DT.getNode(N);
-        // Skip predecessors whose level is above the subtree we are processing.
-        if (TN && TN->getLevel() < MinLevel)
-          continue;
----------------
kuhar wrote:

Do we have some data to confirm this branch is dynamically dead? IIUC, this patch relies on tis being the case.

https://github.com/llvm/llvm-project/pull/73107


More information about the llvm-commits mailing list