[LLVMdev] [PATCH] increase the max number of physical registers

Pekka Jääskeläinen pekka.jaaskelainen at tut.fi
Sat Nov 21 13:15:57 PST 2009


Hello,

Attached is a trivial patch to increase the max number of physical
registers in LLVM from 1024 to 16384.

In our TCE toolset we allow the designer to choose the number of 
registers in the designed TTA processors freely, and recently
while experimenting with using TTA for a GPU design we have
bumped into this limit several times.

What has made matters a bit worse for us is that we need to
reserve two reg indices for each register so they can be used
both for integer and floating point computation, thus the
current limit is 512 registers and the patch lifts it to 8K
which should be enough for a while.

The patch applies cleanly to LLVM 2.5, 2.6 and trunk.
'make check' passes in trunk with this patch.

Best regards,
-- 
Pekka Jääskeläinen
http://tce.cs.tut.fi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-more-phys-regs.patch
Type: text/x-patch
Size: 749 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091121/1973bce6/attachment.bin>


More information about the llvm-dev mailing list