This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa] [PATCH]: Count number of new blocks created properly


The number of new blocks is new_n_basic_blocks - old_n_basic_blocks, not old_n_basic_blocks - new_n_basic_blocks.

Okay?

2003-06-05  Daniel Berlin  <dberlin@dberlin.org>
        * tree-cfg.c (bsi_commit_edge_inserts): Fix computation of
	   new_blocks.

Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.99
diff -u -3 -p -r1.1.4.99 tree-cfg.c
--- tree-cfg.c  4 Jun 2003 23:28:53 -0000       1.1.4.99
+++ tree-cfg.c  7 Jun 2003 00:49:19 -0000
@@ -4059,7 +4059,7 @@ bsi_commit_edge_inserts (update_annotati
     }

   if (new_blocks)
-    *new_blocks = blocks - n_basic_blocks;
+    *new_blocks = n_basic_blocks - blocks;

/* Expand arrays if we created new blocks and need to update them. */
if (update_annotations && blocks != n_basic_blocks)



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]