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: [tuples] Tuplify invariant motion


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;


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