This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: Fix missing update_stmt in lambda-code
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 25 May 2005 10:03:37 -0400
- Subject: [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 <dberlin@dberlin.org>
* lambda-code.c (perfect_nestify): Call update_stmt on the exit
condition.
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);
else
bsi_insert_before (&bsi, stmt, BSI_SAME_STMT);
-
+ update_stmt (stmt);
COND_EXPR_COND (exit_condition) = build (GE_EXPR,
boolean_type_node,
uboundvar,
ivvarinced);
-
+ update_stmt (exit_condition);
bbs = get_loop_body (loop);
/* Now replace the induction variable in the moved statements with the
correct loop induction variable. */