Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization

2023-10-26 Thread Robin Dapp
> Increased FAILS are LMUL = M4. I have analyzed the codegen. Looks > reasonable. > > Moreover, When I removed 'popcount_64' and test, all passed no matter > apply this patch or not. > > I think it is because popcount64 is buggy in RV32, this patch trigger > LMUL = 4 bug already existed that we

Re: RE: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization

2023-10-26 Thread juzhe.zh...@rivai.ai
ursday, October 26, 2023 9:27 AM To: Patrick O'Neill ; gcc-patches Cc: kito.cheng ; Kito.cheng ; jeffreyalaw ; Robin Dapp Subject: Re: Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization   I think it's QEMU issue:   line 15: 1520161 Aborted                 (core d

RE: Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization

2023-10-26 Thread Li, Pan2
, 2023 9:27 AM To: Patrick O'Neill ; gcc-patches Cc: kito.cheng ; Kito.cheng ; jeffreyalaw ; Robin Dapp Subject: Re: Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization I think it's QEMU issue: line 15: 1520161 Aborted                 (core dumped) QEMU_CPU="

Re: Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization

2023-10-25 Thread juzhe.zh...@rivai.ai
C: kito.cheng; Kito.cheng; jeffreyalaw; Robin Dapp Subject: Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization On 10/25/23 17:49, juzhe.zh...@rivai.ai wrote: FAIL: gcc.dg/vect/costmodel/riscv/rvv/dynamic-lmul4-5.c -O3 -ftree-vectorize --param riscv-autovec-lmul=dynamic  scan-

Re: Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization

2023-10-25 Thread juzhe.zh...@rivai.ai
: 2023-10-26 08:37 To: juzhe.zh...@rivai.ai; gcc-patches CC: kito.cheng; Kito.cheng; jeffreyalaw; Robin Dapp Subject: Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization Hi Juzhe, I tested on glibc rv32/64gcv qemu. Applied patch to/comparing with 668c4c3783970e7adf0591396b6d0d

Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization

2023-10-24 Thread Kito Cheng
> +using namespace rtl_ssa; > +using namespace riscv_vector; > + > +/* The AVL propagation instructions and corresponding preferred AVL. > + It will be updated during the analysis. */ > +static hash_map *avlprops; Maybe put into member data of pass_avlprop? > + > +const pass_data pass_data_avl

Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization

2023-10-23 Thread Patrick O'Neill
The CI just picked it up: https://github.com/ewlu/gcc-precommit-ci/issues/449#issue-1958483272 Since it doesn't apply to the CI's baseline hash it's only performing a build. I'll re-run it in the morning once the baseline has been updated. In the meantime I started a full build+test run on my l

Re: [PATCH] RISC-V: Add AVL propagation PASS for RVV auto-vectorization

2023-10-23 Thread juzhe.zh...@rivai.ai
CCing Patrick... Hi, @Patrick. Could you apply this patch and trigger your regression CI? I don't have an environment to test fortran for now (I only test it on C/C++). Thanks. juzhe.zh...@rivai.ai From: Juzhe-Zhong Date: 2023-10-24 11:32 To: gcc-patches CC: kito.cheng; kito.cheng; jeffrey