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]

Re: teach simplify_rtx to simplify unordered compares


>>>>> Jan Hubicka writes:

 > Hi
 > The simplify-rtx is not knowind about unordered comparisons.  I am now
 > emitting them early that effectivly disables any chance to optimize
 > out the fp conditionals.

 > I am not IEEE expert, but hope that this code does what expected.

 > Honza

 > Thu Jan  4 21:50:23 MET 2001  Jan Hubicka  <jh@suse.cz>
 > 	* simplify-rtx.c (cfc_args): add "unordered" field.
 > 	(check_fold_consts): Set unordered field.
 > 	(simplify_relational_operation): Simplify the unordered
 > 	comparisons.

 > *** simplify-rtx.c.old	Wed Aug  9 23:00:29 2000
 > --- simplify-rtx.c	Wed Aug  9 23:38:35 2000
 > *************** struct cfc_args
 > *** 1676,1681 ****
 > --- 1676,1682 ----
 >   {
 >     rtx op0, op1;			/* Input */
 >     int equal, op0lt, op1lt;	/* Output */
 > +   int unordered;
 >   };
  
 >   static void
 > *************** check_fold_consts (data)
 > *** 1685,1692 ****
 > --- 1686,1700 ----
 >     struct cfc_args *args = (struct cfc_args *) data;
 >     REAL_VALUE_TYPE d0, d1;
  
 > +   args->unordered = 1;
 > + 
This  can be removed - or change the condition below.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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