[llvm] [SDAG] Simplify divergence verification (PR #108182)
Jay Foad via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 11 03:27: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())
----------------
jayfoad wrote:
> I'm pretty sure it's impossible for TTI to be null.
TTI is only set inside `LLVM_ENABLE_ABI_BREAKING_CHECKS`.
https://github.com/llvm/llvm-project/pull/108182
More information about the llvm-commits
mailing list