This is the mail archive of the gcc@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: Tree sharing issues...


In message <20031119231730.GV11681@kam.mff.cuni.cz>, Jan Hubicka writes:
 >This is my current status:
 >/* Return true when the T can be shared.  */
 >static bool
 >tree_node_shared_p (tree t)
 >{
 >  if (TYPE_P (t) || DECL_P (t)
 >      || is_gimple_min_invariant (t)
 >      || TREE_CODE (t) == SSA_NAME)
 >    return true;
 >  return false;
 >}
 >It pretty much match what you are mentioning.
It's a start.  I'm sure we're going to find more stuff.

 >The array reference above is other stuff.  If you think it makes
 >sense, I will add check for ARRAY_REF with all operands passing
 >is_gimple_min_invariant.  DOes that sound plausible?
I'm simply not sure.

 >Or do we want to fix jump threading?
I don't see how jump threading could be creating this.  It doesn't 
muck around with statements in that manner. 

jeff


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