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: Kill CONST_DOUBLE_CHAIN


On Wed, Apr 24, 2002 at 11:37:41AM -0700, Richard Henderson wrote:
> On Wed, Apr 24, 2002 at 11:17:28AM -0700, Zack Weinberg wrote:
> > The only thing we use the CONST_DOUBLE_CHAIN for anymore is making all
> > CONST_DOUBLEs unique in the current function.  However, nothing seems
> > to care, and it complicates things unnecessarily.
> 
> If you don't make the constants unique some way, won't
> we get multiple entries for the same constant in the
> constant pool?

No.  compare_rtx_constant compares CONST_DOUBLEs by value, not
address.

> > +  REAL_VALUE_FROM_INT (dconstm1, -1, 0, double_mode);
> 
> 				    -1, -1

Oops.  Corrected in my tree.

zw


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