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]

[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;


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