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: [PATCH] Preserve restrict dependence info in FRE/PRE


On September 23, 2015 3:00:51 PM GMT+02:00, Richard Biener <rguenther@suse.de> wrote:

>*************** copy_reference_ops_from_ref (tree ref, v
>*** 816,826 ****
>--- 828,846 ----
>  	  temp.op0 = TREE_OPERAND (ref, 1);
>  	  if (tree_fits_shwi_p (TREE_OPERAND (ref, 1)))
>  	    temp.off = tree_to_shwi (TREE_OPERAND (ref, 1));
>+ 	  temp.clique = MR_DEPENDENCE_CLIQUE (ref);
>+ 	  temp.base = MR_DEPENDENCE_BASE (ref);
>  	  break;
>  	case BIT_FIELD_REF:
>  	  /* Record bits and position.  */
>  	  temp.op0 = TREE_OPERAND (ref, 1);
>  	  temp.op1 = TREE_OPERAND (ref, 2);
>+ 	  if (tree_fits_shwi_p (TREE_OPERAND (ref, 2)))
>+ 	    {
>+ 	      HOST_WIDE_INT off = tree_to_shwi (TREE_OPERAND (ref, 2));
>+ 	      if (off % BITS_PER_UNIT == 0)
>+ 		temp.off = off / 8;

s/8/BITS_PER_UNIT/

Thanks,


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