[llvm] [SDAG] Simplify divergence verification (PR #108182)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 03:27:46 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())
----------------
jayfoad wrote:
> Although with the usage maybe this field should just be replaced with the bool HasBranchDivergence?
Yeah that might be cleaner.
https://github.com/llvm/llvm-project/pull/108182
More information about the llvm-commits
mailing list