This is the mail archive of the 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]

[PATCH]: Fix missing update_stmt in lambda-code

We weren't calling update_stmt on the exit condition when we updated it,
which would lead to verification failures since the statement wasn't
updated properly.

Bootstrapped and regtested on i686-pc-linux-gnu (during the slush, since
objc seems broken now).
Committed to mainline.
2005-05-25  Daniel Berlin <>

	* lambda-code.c (perfect_nestify): Call update_stmt on the exit
Index: lambda-code.c
RCS file: /cvs/gcc/gcc/gcc/lambda-code.c,v
retrieving revision 2.39
diff -u -p -r2.39 lambda-code.c
--- lambda-code.c	3 May 2005 12:19:36 -0000	2.39
+++ lambda-code.c	25 May 2005 14:02:21 -0000
@@ -2416,12 +2416,12 @@ perfect_nestify (struct loops *loops,
     bsi_insert_after (&bsi, stmt, BSI_SAME_STMT);
     bsi_insert_before (&bsi, stmt, BSI_SAME_STMT);
+  update_stmt (stmt);
   COND_EXPR_COND (exit_condition) = build (GE_EXPR, 
+  update_stmt (exit_condition);
   bbs = get_loop_body (loop); 
   /* Now replace the induction variable in the moved statements with the
      correct loop induction variable.  */

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