This is the mail archive of the gcc@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: RFC: GIMPLE tuples. Design and implementation proposal


Andrew MacLeod <amacleod@redhat.com> writes:
> 
> Do you mean implement this as a single linked list and then to find the
> previous instruction, start at the beginning of the block and traverse
> forward? Back in the early days of tree-ssa we did such a thing with the
> tree iterators. It was too slow. there are many LARGE basic blocks which
> make the computation too expensive for any pass that goes backwards
> through a block.

In theory you could use xor lists (xor next and prev and if you know
one element you can get the other). Problem is that garbage collectors
require special casing for them and debuggers need special macros 
to walk those.

-Andi


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