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: [tree-ssa] Work around for an unfortunate fold-const vs. tree-optimizer interaction


On Thu, Nov 06, 2003 at 02:30:32PM -0700, Roger Sayle wrote:
> 
> The temporary solution on the tree-ssa branch has been to duplicate the
> constant folding code.  Given its complexity this is far less than ideal.

IMO this is a side effect of the monolithic fold function.  

Smaller functions that implement reduced parts of the folder could
compose more complex folders without having to duplicate the code.
The changes I have proposed would require a lot of "cosmetic"
improvements.  These changes were not the top priority the last time
I've tried to remove the dust from the folders.

Anyway, sooner or later the folder has to be rewritten/reworked since
it is one of the dinosaurs we have been left to live with...

Sebastian


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