Skip to content

lima/ppir: don't use list_length() in loop in regalloc and liveness analysis

Vasily Khoruzhick requested to merge anarsoul/mesa:lima-ppir-use-reg-num into master

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

Merge request reports

Loading