diff --git a/src/coreclr/jit/redundantbranchopts.cpp b/src/coreclr/jit/redundantbranchopts.cpp index d9c6c33064fb1..7a46089e165cc 100644 --- a/src/coreclr/jit/redundantbranchopts.cpp +++ b/src/coreclr/jit/redundantbranchopts.cpp @@ -459,11 +459,6 @@ bool Compiler::optRedundantBranch(BasicBlock* const block) unsigned matchCount = 0; const unsigned matchLimit = 4; - if (domBlock == nullptr) - { - return false; - } - // Unpack the tree's VN // ValueNum treeNormVN; @@ -482,6 +477,11 @@ bool Compiler::optRedundantBranch(BasicBlock* const block) } else { + if (domBlock == nullptr) + { + return false; + } + JITDUMP("Relop [%06u] " FMT_BB " value unknown, trying inference\n", dspTreeID(tree), block->bbNum); }