Re: [PATCH] RISC-V: Avoid more unsplit insns in const expander [PR118832].

2025-02-13 Thread Jeff Law
On 2/12/25 7:03 AM, Robin Dapp wrote: Hi, in PR118832 we have another instance of the problem already noticed in PR117878. We sometimes use e.g. expand_simple_binop for vector operations like shift or and. While this is usually OK, it causes problems when doing it late, e.g. during LRA. In

Re: [PATCH] RISC-V: Avoid more unsplit insns in const expander [PR118832].

2025-02-12 Thread 钟居哲
LGTM juzhe.zh...@rivai.ai From: Robin Dapp Date: 2025-02-12 22:03 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: Avoid more unsplit insns in const expander [PR118832

[PATCH] RISC-V: Avoid more unsplit insns in const expander [PR118832].

2025-02-12 Thread Robin Dapp
Hi, in PR118832 we have another instance of the problem already noticed in PR117878. We sometimes use e.g. expand_simple_binop for vector operations like shift or and. While this is usually OK, it causes problems when doing it late, e.g. during LRA. In particular, we might rematerialize a const