[tuples] Tuplify invariant motion

Zdenek Dvorak rakdver@kam.mff.cuni.cz
Sat Mar 1 02:10:00 GMT 2008


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;



More information about the Gcc-patches mailing list