Re: [PATCH] RISC-V: Teach liveness estimation be aware of .vi variant

2024-01-04 Thread Kito Cheng
Nice catch, LGTM :) On Thu, Jan 4, 2024 at 4:28 PM Juzhe-Zhong wrote: > > Consider this following case: > > void > f (int *restrict a, int *restrict b, int *restrict c, int *restrict d, int n) > { > for (int i = 0; i < n; i++) > { > int tmp = b[i] + 15; > int tmp2 = tmp + b[i];

[PATCH] RISC-V: Teach liveness estimation be aware of .vi variant

2024-01-04 Thread Juzhe-Zhong
Consider this following case: void f (int *restrict a, int *restrict b, int *restrict c, int *restrict d, int n) { for (int i = 0; i < n; i++) { int tmp = b[i] + 15; int tmp2 = tmp + b[i]; c[i] = tmp2 + b[i]; d[i] = tmp + tmp2 + b[i]; } } Current dynamic LMUL cos