diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h --- a/llvm/include/llvm/CodeGen/SelectionDAG.h +++ b/llvm/include/llvm/CodeGen/SelectionDAG.h @@ -531,7 +531,7 @@ } #ifndef NDEBUG - void VerifyDAGDiverence(); + void VerifyDAGDivergence(); #endif /// This iterates over the nodes in the SelectionDAG, folding diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -9705,7 +9705,7 @@ } #ifndef NDEBUG -void SelectionDAG::VerifyDAGDiverence() { +void SelectionDAG::VerifyDAGDivergence() { std::vector TopoOrder; CreateTopologicalOrder(TopoOrder); for (auto *N : TopoOrder) { diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -798,7 +798,7 @@ #ifndef NDEBUG if (TTI.hasBranchDivergence()) - CurDAG->VerifyDAGDiverence(); + CurDAG->VerifyDAGDivergence(); #endif if (ViewDAGCombine1 && MatchFilterBB) @@ -818,7 +818,7 @@ #ifndef NDEBUG if (TTI.hasBranchDivergence()) - CurDAG->VerifyDAGDiverence(); + CurDAG->VerifyDAGDivergence(); #endif // Second step, hack on the DAG until it only uses operations and types that @@ -840,7 +840,7 @@ #ifndef NDEBUG if (TTI.hasBranchDivergence()) - CurDAG->VerifyDAGDiverence(); + CurDAG->VerifyDAGDivergence(); #endif // Only allow creation of legal node types. @@ -864,7 +864,7 @@ #ifndef NDEBUG if (TTI.hasBranchDivergence()) - CurDAG->VerifyDAGDiverence(); + CurDAG->VerifyDAGDivergence(); #endif } @@ -882,7 +882,7 @@ #ifndef NDEBUG if (TTI.hasBranchDivergence()) - CurDAG->VerifyDAGDiverence(); + CurDAG->VerifyDAGDivergence(); #endif { @@ -898,7 +898,7 @@ #ifndef NDEBUG if (TTI.hasBranchDivergence()) - CurDAG->VerifyDAGDiverence(); + CurDAG->VerifyDAGDivergence(); #endif if (ViewDAGCombineLT && MatchFilterBB) @@ -918,7 +918,7 @@ #ifndef NDEBUG if (TTI.hasBranchDivergence()) - CurDAG->VerifyDAGDiverence(); + CurDAG->VerifyDAGDivergence(); #endif } @@ -938,7 +938,7 @@ #ifndef NDEBUG if (TTI.hasBranchDivergence()) - CurDAG->VerifyDAGDiverence(); + CurDAG->VerifyDAGDivergence(); #endif if (ViewDAGCombine2 && MatchFilterBB) @@ -958,7 +958,7 @@ #ifndef NDEBUG if (TTI.hasBranchDivergence()) - CurDAG->VerifyDAGDiverence(); + CurDAG->VerifyDAGDivergence(); #endif if (OptLevel != CodeGenOpt::None)