RE: [PATCH] RISC-V: Enhance AVL propagation for complicate reduction auto-vectorization

2023-11-06 Thread Li, Pan2
propagation for complicate reduction auto-vectorization LGTM. Regards Robin

Re: [PATCH] RISC-V: Enhance AVL propagation for complicate reduction auto-vectorization

2023-11-06 Thread Robin Dapp
LGTM. Regards Robin

Re: [PATCH] RISC-V: Enhance AVL propagation for complicate reduction auto-vectorization

2023-11-06 Thread juzhe.zh...@rivai.ai
Ping this simple optimization. Ok for trunk ? juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-11-06 11:34 To: gcc-patches CC: kito.cheng; kito.cheng; jeffreyalaw; rdapp.gcc; Juzhe-Zhong Subject: [PATCH] RISC-V: Enhance AVL propagation for complicate reduction auto-vectorization I notice we

[PATCH] RISC-V: Enhance AVL propagation for complicate reduction auto-vectorization

2023-11-05 Thread Juzhe-Zhong
I notice we failed to AVL propagate for reduction with more complicate situation: double foo (double *__restrict a, double *__restrict b, double *__restrict c, int n) { double result = 0; for (int i = 0; i < n; i++) result += a[i] * b[i] * c[i]; return result; } vsetvli a5,a3