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]

Re: [PATCH]: GVN-PRE



On Jun 12, 2004, at 12:39 PM, Andreas Schwab wrote:


Daniel Berlin <dberlin@dberlin.org> writes:

On Jun 12, 2004, at 7:10 AM, Andreas Schwab wrote:

Daniel Berlin <dberlin@dberlin.org> writes:

Bootstrapped and regtested on powerpc-suse-linux, powerpc-apple-darwin,
i686-pc-linux-gnu, and i believe stevenb bootstrapped and regtested it
on
x86-64-linux-gnu

ICEs on ia64-linux.

Can you send me a .i file in the hopes that it reproduces on other platforms with the right code?

Here is a reduced testcase:


Thanks.

Can you try bootstrapping with this patch on ia64-linux?

Index: tree-ssa-pre.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-pre.c,v
retrieving revision 2.7
diff -u -3 -p -r2.7 tree-ssa-pre.c
--- tree-ssa-pre.c      12 Jun 2004 00:18:32 -0000      2.7
+++ tree-ssa-pre.c      12 Jun 2004 19:43:00 -0000
@@ -468,6 +468,11 @@ add_to_value (tree v, tree e)
       TREE_CONSTANT (v) = true;
       TREE_CHAIN (v) = e;
     }
+  else if (is_gimple_min_invariant (e))
+    {
+      TREE_CONSTANT (v) = true;
+      TREE_CHAIN (v) = e;
+    }
 #if DEBUG_VALUE_EXPRESSIONS
   if (va->expr_set == NULL)
     va->expr_set = set_new (false);


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