Index: llvm/lib/CodeGen/RDFLiveness.cpp =================================================================== --- llvm/lib/CodeGen/RDFLiveness.cpp +++ llvm/lib/CodeGen/RDFLiveness.cpp @@ -235,7 +235,7 @@ // Sort the blocks with respect to dominance. std::sort(TmpBB.begin(), TmpBB.end(), [this](auto A, auto B) { - return MDT.dominates(A, B); + return MDT.properlyDominates(A, B); }); std::vector TmpInst;