Patchwork Remove bogus code from inliner

login
register
mail settings
Submitter Richard Guenther
Date June 17, 2010, 1:09 p.m.
Message ID <alpine.LNX.2.00.1006171508210.1429@zhemvz.fhfr.qr>
Download mbox | patch
Permalink /patch/56043/
State New
Headers show

Comments

Richard Guenther - June 17, 2010, 1:09 p.m.
It doesn't make sense and dates from the initial SSA inliner patch.

Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.

Richard.

2010-06-17  Richard Guenther  <rguenther@suse.de>

	* tree-inline.c (declare_return_variable): Remove bogus code.

Patch

Index: gcc/tree-inline.c
===================================================================
--- gcc/tree-inline.c	(revision 160890)
+++ gcc/tree-inline.c	(working copy)
@@ -2701,25 +2701,6 @@  declare_return_variable (copy_body_data
 	     via return slot optimization are not believed to have address
 	     taken by alias analysis.  */
 	  gcc_assert (TREE_CODE (return_slot) != SSA_NAME);
-	  if (gimple_in_ssa_p (cfun))
-	    {
-	      HOST_WIDE_INT bitsize;
-	      HOST_WIDE_INT bitpos;
-	      tree offset;
-	      enum machine_mode mode;
-	      int unsignedp;
-	      int volatilep;
-	      tree base;
-	      base = get_inner_reference (return_slot, &bitsize, &bitpos,
-					  &offset,
-					  &mode, &unsignedp, &volatilep,
-					  false);
-	      if (TREE_CODE (base) == INDIRECT_REF)
-		base = TREE_OPERAND (base, 0);
-	      if (TREE_CODE (base) == SSA_NAME)
-		base = SSA_NAME_VAR (base);
-	      mark_sym_for_renaming (base);
-	    }
 	  var = return_slot_addr;
 	}
       else