On 11/13/13 03:15, Richard Biener wrote:
You know - 'tree's were a design decision (well, just my guess - I wasn't
around 25 years ago ...). They are a perfect match to represent an AST.
So I'd say whoever introduced that middle-end between the FEs AST
and RTL was at fault :P (luckily I wasn't around either ... ;))
Yea, you can blame Diego, Andrew and myself largely for the decision to
re-use trees in gimple. Reusing trees was a conscious decision made in
large part because doing something different for the middle end would
have been more work than we could justify at the time.
We would have had to do all the things we're doing now, back then to get
it "right". The only difference is now we've got a lot more gimple bits
that know about trees than we did early in the early gimple/ssa days.
We did the best we could, now it's time to correct that problem and make
sense out of our datastructures.
Jeff