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: invalid GET_MODE_WIDER_MODE assumption


> Is inventing GET_MODE_2XWIDER_MODE easier than just searching?
> Or are you planning to use this elsewhere?

The logic is the same; either way would just the _WIDER table to skip
ahead to the one with the right size, type, and precision.  Building a
table just means it won't have to be re-done for each and every single
multiplication in the compilation unit (think "pointer to int" math
;).

As for byte savings, I suspect the table is smaller than (or at least
not significantly larger than) the logic to do the search.


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