On 11/19/2015 10:18 AM, Bernd Schmidt wrote:
On 11/19/2015 06:06 PM, Jeff Law wrote:

Frankly, the overall structure of ree is a mess -- I've found it
incredibly difficult to follow every time I've had to look at it.

Yeah, no kidding. The check seems to be in the wrong place - it's done
very late when we're replacing things, and IMO we should just restrict
the candidates for optimization much earlier.
And I didn't make it any cleaner when I hacked it up to handle one more case :( I'm hoping that a year away will allow me to look and think about the code again without getting a horrid headache.



Also, I want to apply the following. Ok if testing succeeds?


Bernd

clean-ree1.diff


commit ce68938b5150f5d41a54ed317ab97d98461be064
Author: Bernd Schmidt<bernds_...@t-online.de>
Date:   Thu Nov 19 17:38:15 2015 +0100

     Readability improvements in ree.c:combine_reaching_defs.

        * ree.c (combine_reaching_defs): Simplify code by caching expressions
        in variables.
Yes. That's good with me.

jeff

Reply via email to