This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix missed VRP with unhandled operations


On Wed, Aug 20, 2008 at 9:01 AM, Richard Guenther <rguenther@suse.de> wrote:
>
> VRP doesn't do range propagation on all operations but instead of
> falling back to varying in all cases it should at least do what CCP
> does, namely constant folding if all operands are single valued
> ranges and constants.  Noted while removing the last DOM pass.
>
> Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to the
> trunk.
>
> Richard.
>
> 2008-08-20  Richard Guenther  <rguenther@suse.de>
>
>        * tree-vrp.c (op_with_constant_singleton_value_range): New function.
>        (extract_range_from_binary_expr): Fall back to constant propagation.
>        (extract_range_from_unary_expr): Likewise.
>
>        * gcc.dg/tree-ssa/pr21829.c: Scan optimized and cddce2 dumps
>        instead of phicprop2.  Make sure all is fine after cddce2,
>        add an XFAILed scan for merging the two remaining ifs.
>

This patch may have caused

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37181

-- 
H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]