This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Move ~X | X -> -1 folding
- From: Marek Polacek <polacek at redhat dot com>
- To: Marc Glisse <marc dot glisse at inria dot fr>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, Richard Biener <rguenther at suse dot de>
- Date: Tue, 30 Jun 2015 14:46:00 +0200
- Subject: Re: [PATCH] Move ~X | X -> -1 folding
- Authentication-results: sourceware.org; auth=none
- References: <20150630084620 dot GN10139 at redhat dot com> <alpine dot DEB dot 2 dot 20 dot 1506301056540 dot 1977 at laptop-mg dot saclay dot inria dot fr> <20150630102407 dot GO10139 at redhat dot com> <alpine dot DEB dot 2 dot 20 dot 1506301337200 dot 1977 at laptop-mg dot saclay dot inria dot fr>
On Tue, Jun 30, 2015 at 01:39:29PM +0200, Marc Glisse wrote:
> Does my suggestion to "build the all_ones constant in TREE_TYPE (@0) and
> convert that to type" help for that?
It appears to work, but it seems weird to me to create a integer constant
in one type and then immediately cast it to another type.
Marek