[PATCH] PR middle-end/21137: Folding if (((int)x >> 31) & 64) into if ((int)x < 0)

Marek Polacek polacek@redhat.com
Mon Aug 8 11:58:00 GMT 2016


On Mon, Aug 08, 2016 at 12:56:20PM +0100, Roger Sayle wrote:
> 
> The following patch is an attempt to finally fully close PR middle-end/21137.
> As explained in the PR, my original patch from 2006 didn't handle the case
> where there's a sign preserving NOP in the tree.  Easily fixed by calling
> tree_strip_nop_conversions at the appropriate point in fold-const.c.
> Most of this patch is the resulting re-indentation.
 
Shouldn't this be rather handled through the match.pd interface?

	Marek



More information about the Gcc-patches mailing list