[llvm] [SelectionDAG] Add support to filter SelectionDAG dumps during ISel by function names (PR #72696)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 20 13:21:21 PST 2023


================
@@ -180,6 +182,15 @@ static const bool ViewDAGCombine1 = false, ViewLegalizeTypesDAGs = false,
                   ViewSchedDAGs = false, ViewSUnitDAGs = false;
 #endif
 
+#define ISEL_DUMP(X)                                                           \
+  do {                                                                         \
----------------
topperc wrote:

Do we need to define this to an empty block when NDEBUG is defined? Otherwise I think we try to evaluate `X` but the `FuncName` variable passed to the first ISEL_DUMP won't be defined.

https://github.com/llvm/llvm-project/pull/72696


More information about the llvm-commits mailing list