diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp --- a/llvm/lib/CodeGen/MachineSink.cpp +++ b/llvm/lib/CodeGen/MachineSink.cpp @@ -1400,13 +1400,6 @@ TryBreak = true; } - // We don't want to sink across a critical edge if we don't dominate the - // successor. We could be introducing calculations to new code paths. - if (!TryBreak && !DT->dominates(ParentBlock, SuccToSinkTo)) { - LLVM_DEBUG(dbgs() << " *** NOTE: Critical edge found\n"); - TryBreak = true; - } - // Don't sink instructions into a loop. if (!TryBreak && LI->isLoopHeader(SuccToSinkTo)) { LLVM_DEBUG(dbgs() << " *** NOTE: Loop header found\n");