lima/ppir: don't use list_length() in loop in regalloc and liveness analysis
list_length() complexity is O(n), so it's better to store number of regs separately and use it instead of list_length().
Signed-off-by: Vasily Khoruzhick anarsoul@gmail.com