This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Some middle-end improvements for bitfield handling
- From: Richard Henderson <rth at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Roger Sayle <roger at eyesopen dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Jun 2004 13:50:50 -0700
- Subject: Re: [PATCH] Some middle-end improvements for bitfield handling
- References: <20040629111550.GT5191@sunsite.ms.mff.cuni.cz>
On Tue, Jun 29, 2004 at 01:15:50PM +0200, Jakub Jelinek wrote:
> * simplify-rtx.c (simplify_binary_operation): Simplify
> ((A & N) + B) & M -> (A + B) & M if M is pow2 minus 1 constant and
> N has at least all bits in M set as well.
>
> * expr.c (expand_assignment): Optimize += or -= on a bit field in
> most significant bits.
>
> * gcc.c-torture/execute/20040629-1.c: New test.
Ok.
r~