plan9fox/sys
cinap_lenrek 345714dd56 8c, 6c: avoid allocating index registers when we don't have to
when a operation receives a chain of OINDEX nodes as its operands,
each indexing step used to allocate a new index register. this
is wastefull an can result in running out of fixed registers on 386
for code such as: x = a[a[a[a[i]]]].

instead we attempt to reuse the destination register of the operation
as the index register if it is not otherwise referenced. this results
in the index chain to use a single register for index and result and
leaves registers free to be used for something usefull instead.

for 6c, try to avoid R13 as well as BP index base register.
2019-06-24 19:36:01 +02:00
..
doc /sys/doc: fix mkfile to and remove files that now can be regenerated 2017-05-09 16:23:48 +02:00
games/lib fortunes: Open source may not be safe if it has no super excellent moderator. 2019-03-17 23:13:27 -04:00
include stdio: fix putc(), plan9 version 2019-06-20 00:04:58 +02:00
lib gs: apply fixes for CVE-2018-16509 (thanks jsmoody) 2019-05-23 14:59:28 +02:00
man Always turn on the -+ flag in cpp 2019-06-18 22:47:15 -07:00
src 8c, 6c: avoid allocating index registers when we don't have to 2019-06-24 19:36:01 +02:00