This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix the rest of PR36792
- From: Richard Guenther <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 10 Dec 2008 23:15:44 +0100 (CET)
- Subject: [PATCH] Fix the rest of PR36792
We no longer PRE comparisons because we forget to record them
during compute_avail. Fixed.
Bootstrapped and tested on x86_64-unknown-linux-gnu, applied to trunk.
Richard.
2008-12-10 Richard Guenther <rguenther@suse.de>
PR tree-optimization/36792
* tree-ssa-pre.c (compute_avail): Handle tcc_comparison like
tcc_binary.
Index: gcc/tree-ssa-pre.c
===================================================================
*** gcc/tree-ssa-pre.c (revision 142659)
--- gcc/tree-ssa-pre.c (working copy)
*************** compute_avail (void)
*** 3713,3718 ****
--- 3713,3719 ----
if (is_exception_related (stmt))
continue;
case tcc_binary:
+ case tcc_comparison:
{
vn_nary_op_t nary;
unsigned int i;