[llvm-commits] llvm-gcc: support arrays with non-zero lower bound

Duncan Sands baldrick at free.fr
Sat Mar 3 03:34:44 PST 2007


> ...(3) having gcc add one.  For C, (3) involves adding one to a
> constant, which does not involve any heavy operations like memory
> allocation, just a two word integer plus operation.

This is wrong: adding one of course requires allocating a tree node in
general (i.e. unless a previously constructed constant can be recycled).

Ciao,

Duncan.



More information about the llvm-commits mailing list