[llvm] Reland "[NewPM][CodeGen] Port selection dag isel to new pass manager" (PR #94149)
Andrey Portnoy via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 07:50:07 PDT 2024
================
@@ -804,8 +924,8 @@ void SelectionDAGISel::CodeGenAndEmitDAG() {
<< "'\n";
CurDAG->dump());
-#ifndef NDEBUG
- if (TTI.hasBranchDivergence())
+#if LLVM_ENABLE_ABI_BREAKING_CHECKS
+ if (TTI->hasBranchDivergence())
CurDAG->VerifyDAGDivergence();
----------------
andportnoy wrote:
How can this line compile when `NDEBUG` is defined, if the declaration of `VerifyDAGDivergence` is guarded by `#ifndef NDEBUG`?
https://github.com/llvm/llvm-project/blob/9c697b3a02d95b49e11633c45f76f77954fca704/llvm/include/llvm/CodeGen/SelectionDAG.h#L587-L589
https://github.com/llvm/llvm-project/pull/94149
More information about the llvm-commits
mailing list