Re: Re: [PATCH V4] RISC-V: Support Dynamic LMUL Cost model

2023-09-12 Thread juzhe.zh...@rivai.ai
Then you don't need to waste time on reduce the case from SPEC. juzhe.zh...@rivai.ai From: juzhe.zh...@rivai.ai Date: 2023-09-12 17:36 To: Robin Dapp; gcc-patches CC: Robin Dapp; kito.cheng; Kito.cheng; jeffreyalaw Subject: Re: Re: [PATCH V4] RISC-V: Support Dynamic LMUL Cost model Th

Re: Re: [PATCH V4] RISC-V: Support Dynamic LMUL Cost model

2023-09-12 Thread juzhe.zh...@rivai.ai
This is first version of dynamic LMUL. I didn't test it with full GCC testsuite. My plan is to first pass all GCC testsuite (including vect.exp) with default LMUL = M1. Then enable dynamic LMUL to test it. Maybe we could tolerate this ICE issue for now. Then we can test it with full GCC testsui

Re: Re: [PATCH V4] RISC-V: Support Dynamic LMUL Cost model

2023-09-12 Thread juzhe.zh...@rivai.ai
Is calculix big ? Could you give me the testcase to reproduce it? For + gcc_assert (biggest_size >= mode_size); I currently don't have an idea to fix it. But for + mode = TYPE_MODE (TREE_TYPE (lhs)); I think I can fix it. if (!gimple_store_p (stmt)) { tree l

Re: Re: [PATCH V4] RISC-V: Support Dynamic LMUL Cost model

2023-09-12 Thread juzhe.zh...@rivai.ai
Thanks Robin. I have tried your codes. It works fine and tests passes. Does your code O(nlogn) complexity ? juzhe.zh...@rivai.ai From: Robin Dapp Date: 2023-09-12 16:19 To: Juzhe-Zhong; gcc-patches CC: rdapp.gcc; kito.cheng; kito.cheng; jeffreyalaw Subject: Re: [PATCH V4] RISC-V: Support Dyn