@@ -273,7 +273,7 @@ basicblock_insert_instruction(basicblock *block, int pos, cfg_instr *instr) {
273273}
274274
275275/* For debugging purposes only */
276- #if 1
276+ #if 0
277277static void
278278dump_instr (cfg_instr * i )
279279{
@@ -330,12 +330,6 @@ _PyCfgBuilder_DumpGraph(const basicblock *entryblock, const basicblock *mark)
330330 }
331331}
332332
333- #define DUMP (B , M ) _PyCfgBuilder_DumpGraph((B), (M))
334-
335- #else
336-
337- #define DUMP (B , M ) ((void)0)
338-
339333#endif
340334
341335
@@ -835,7 +829,6 @@ calculate_stackdepth(cfg_builder *g)
835829 int maxdepth = 0 ;
836830 basicblock * * sp = stack ;
837831 if (stackdepth_push (& sp , entryblock , 0 ) < 0 ) {
838- DUMP (entryblock , entryblock );
839832 goto error ;
840833 }
841834 while (sp != stack ) {
@@ -856,7 +849,6 @@ calculate_stackdepth(cfg_builder *g)
856849 if (new_depth < 0 ) {
857850 PyErr_Format (PyExc_ValueError ,
858851 "Invalid CFG, stack underflow" );
859- DUMP (entryblock , b );
860852 goto error ;
861853 }
862854 maxdepth = Py_MAX (maxdepth , depth );
@@ -871,7 +863,6 @@ calculate_stackdepth(cfg_builder *g)
871863 assert (target_depth >= 0 ); /* invalid code or bug in stackdepth() */
872864 maxdepth = Py_MAX (maxdepth , depth );
873865 if (stackdepth_push (& sp , instr -> i_target , target_depth ) < 0 ) {
874- DUMP (entryblock , instr -> i_target );
875866 goto error ;
876867 }
877868 }
@@ -888,7 +879,6 @@ calculate_stackdepth(cfg_builder *g)
888879 if (next != NULL ) {
889880 assert (BB_HAS_FALLTHROUGH (b ));
890881 if (stackdepth_push (& sp , next , depth ) < 0 ) {
891- DUMP (entryblock , next );
892882 goto error ;
893883 }
894884 }
0 commit comments