Re: [PATCH] RISC-V: Use biggest_mode as mode for constants.

2024-10-15 Thread 钟居哲
LGTM juzhe.zh...@rivai.ai From: Robin Dapp Date: 2024-10-15 20:55 To: gcc-patches CC: pal...@dabbelt.com; kito.ch...@gmail.com; juzhe.zh...@rivai.ai; jeffreya...@gmail.com; pan2...@intel.com; rdapp@gmail.com Subject: [PATCH] RISC-V: Use biggest_mode as mode for constants. Hi, in compute

Re: [PATCH] RISC-V: Use biggest_mode as mode for constants.

2024-10-15 Thread Jeff Law
On 10/15/24 6:55 AM, Robin Dapp wrote: Hi, in compute_nregs_for_mode we expect that the current variable's mode is at most as large as the biggest mode to be used for vectorization. This might not be true for constants as they don't actually have a mode. In that case, just use the biggest mo