This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Improve tree-ssa test
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Jul 2003 16:57:18 -0600
- Subject: [tree-ssa] Improve tree-ssa test
- Reply-to: law at redhat dot com
This adds an additional check to one of the new tree-ssa tests to verify
that we kill a redundant load (we don't currently kill it, so expect it
to fail for a little while :-)
* gcc.dg/tree-ssa/20030709-2.c: Also test that we eliminate
the redundant load of ->fld[1].rtmem.
Index: gcc.dg/tree-ssa/20030709-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/Attic/20030709-2.c,v
retrieving revision 1.1.2.1
diff -c -3 -p -r1.1.2.1 20030709-2.c
*** gcc.dg/tree-ssa/20030709-2.c 15 Jul 2003 19:24:51 -0000 1.1.2.1
--- gcc.dg/tree-ssa/20030709-2.c 16 Jul 2003 22:56:09 -0000
*************** get_alias_set (t)
*** 42,47 ****
--- 42,51 ----
more than, then the dominator optimizations failed. */
/* { dg-final { scan-tree-dump-times "->decl\\.rtl" 1 "ssa"} } */
+ /* There should be precisely one load of .rtmem. If there is
+ more than, then the dominator optimizations failed. */
+ /* { dg-final { scan-tree-dump-times ".rtmem" 1 "ssa"} } */
+
/* There should be two IF statements.
/* { dg-final { scan-tree-dump-times "if " 2 "ssa"} } */