This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Avoid weird integral types in reassoc range opts (PR tree-optimization/88274)
- From: Jeff Law <law at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>, Richard Biener <rguenther at suse dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 30 Nov 2018 16:18:28 -0700
- Subject: Re: [PATCH] Avoid weird integral types in reassoc range opts (PR tree-optimization/88274)
- References: <20181130204402.GF12380@tucnak>
On 11/30/18 1:44 PM, Jakub Jelinek wrote:
> Hi!
>
> The following patch makes sure that we don't use weird integral types
> (either ones which have smaller precision than corresponding mode's
> precision, or ones like C++ -fstrict-enum enumeral types which have
> normal precision, but smaller TYPE_MAX_VALUE or larger TYPE_MIN_VALUE),
> because the constants could be outside of the range of those types.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2018-11-30 Jakub Jelinek <jakub@redhat.com>
>
> PR tree-optimization/88274
> * tree-ssa-reassoc.c (optimize_range_tests_xor,
> optimize_range_tests_diff): If type has smaller precision than
> corresponding mode or if it has non-standard min/max, compute
> everything in a standard type for the precision.
OK
jeff