[lno]: Simple alignment analysis pass

Richard Henderson rth@redhat.com
Tue Jul 20 22:42:00 GMT 2004


On Tue, Jul 20, 2004 at 03:06:28PM -0400, Daniel Berlin wrote:
> +      /* Found P_i = Q_j & constant */
> +      else if (TREE_CODE (rhs) == BIT_AND_EXPR
> +	       && TREE_CODE (TREE_OPERAND (rhs, 1)) == INTEGER_CST)
> +	{
> +	  tree val = TREE_OPERAND (rhs, 1);
> +	  set_alignment_to_constant (var, TREE_INT_CST_LOW (val));
> +	}

(x & 0x11111) does not alignment make; alignment of n is created by (x & -n).

I notice you're failing to infer alignment from &x entirely.



r~



More information about the Gcc-patches mailing list