[llvm] [SDAG] Simplify divergence verification (PR #108182)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 03:21:25 PDT 2024
================
@@ -11713,7 +11714,10 @@ void SelectionDAG::CreateTopologicalOrder(std::vector<SDNode *> &Order) {
}
#ifndef NDEBUG
-void SelectionDAG::VerifyDAGDivergence() {
+void SelectionDAG::VerifyDAGDivergence(TargetTransformInfo *TTI) {
+ if (TTI && !TTI->hasBranchDivergence())
----------------
arsenm wrote:
Although with the usage maybe this field should just be replaced with the bool HasBranchDivergence?
https://github.com/llvm/llvm-project/pull/108182
More information about the llvm-commits
mailing list