This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Update 20030728-1.c
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 13 Nov 2003 01:20:08 -0700
- Subject: [tree-ssa] Update 20030728-1.c
- Reply-to: law at redhat dot com
The improvements to jump threading now mean that the critical PHI node
in this test has an extra predecessor. This results in an additional
assignment appearing in the .optimized output.
It's worth noting this does not represent an additional runtime assignment,
just an additional static assignment. Factoring the "extra" common assignment
created by out-of-ssa is sometimes useful -- though if it's just one
assignment, doing so will likely create an extra runtime jump.
* gcc.dg/tree-ssa/20030728-1.c: Update for jump threading changes.
Index: 20030728-1.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/Attic/20030728-1.c,v
retrieving revision 1.1.2.2
diff -c -3 -p -r1.1.2.2 20030728-1.c
*** 20030728-1.c 12 Aug 2003 17:42:34 -0000 1.1.2.2
--- 20030728-1.c 13 Nov 2003 08:16:00 -0000
*************** objects_must_conflict_p (t1, t2)
*** 41,47 ****
return foo (t2 ? get_alias_set (t2) : 0);
}
! /* There should be two assignments of variables to the value zero */
! /* { dg-final { scan-tree-dump-times " = 0" 2 "optimized"} } */
--- 41,47 ----
return foo (t2 ? get_alias_set (t2) : 0);
}
! /* There should be three assignments of variables to the value zero. */
! /* { dg-final { scan-tree-dump-times " = 0" 3 "optimized"} } */