[PATCH] VECT: Change flow of decrement IV
Richard Sandiford
richard.sandiford@arm.com
Tue May 30 11:31:45 GMT 2023
juzhe.zhong@rivai.ai writes:
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
>
> Follow Richi's suggestion, I change current decrement IV flow from:
>
> do {
> remain -= MIN (vf, remain);
> } while (remain != 0);
>
> into:
>
> do {
> old_remain = remain;
> len = MIN (vf, remain);
> remain -= vf;
> } while (old_remain >= vf);
>
> to enhance SCEV.
>
> ALL tests (decrement IV) of RVV are passed.
How does it affect RVV code quality? I thought you specifically chose
the previous approach because code quality was better that way.
Richard
More information about the Gcc-patches
mailing list