This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tuples] Tuplify invariant motion
- From: Zdenek Dvorak <rakdver at kam dot mff dot cuni dot cz>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: Diego Novillo <dnovillo at google dot com>, gcc-patches at gcc dot gnu dot org
- Date: Sat, 1 Mar 2008 03:10:00 +0100
- Subject: Re: [tuples] Tuplify invariant motion
- References: <b798aad50802220349m1604a27am78201ad9abc316ce@mail.gmail.com> <20080223013922.GA13761@kam.mff.cuni.cz> <8FDA7F57-856A-4B90-9139-DE26844E08B1@google.com> <20080227121828.GA21537@kam.mff.cuni.cz> <m3myplb6t3.fsf@anquetil.quesejoda.com>
Hi,
> Ok, provided you look into the misscompilation :).
that turned out to be easier than I feared; a test for
pure/const calls in is_escape_site was reversed. Commited
as obvious.
Zdenek
* tree-ssa-alias.c (is_escape_site): Detect pure/const functions
correctly.
Index: tree-ssa-alias.c
===================================================================
*** tree-ssa-alias.c (revision 132769)
--- tree-ssa-alias.c (working copy)
*************** is_escape_site (gimple stmt)
*** 2973,2979 ****
{
if (gimple_code (stmt) == GIMPLE_CALL)
{
! if (!(gimple_call_flags (stmt) & (ECF_PURE | ECF_CONST)))
return ESCAPE_TO_PURE_CONST;
return ESCAPE_TO_CALL;
--- 2973,2979 ----
{
if (gimple_code (stmt) == GIMPLE_CALL)
{
! if (gimple_call_flags (stmt) & (ECF_PURE | ECF_CONST))
return ESCAPE_TO_PURE_CONST;
return ESCAPE_TO_CALL;