[PATCH] expr: Use constant_lower_bound classifying constructor els [PR116595].

2025-04-10 Thread Robin Dapp
Hi, in categorize_ctor_elements_1 we do VECTOR_CST_NELTS (value).to_constant () but VALUE's type can be a VLA vector (since r15-5780-g17b520a10cdaab). This patch uses constant_lower_bound instead. Bootstrapped and regtested on x86, aarch64, and power 10. Regtested on rv64gcv_zvl512b. Regards

Re: [PATCH] expr: Use constant_lower_bound classifying constructor els [PR116595].

2025-04-08 Thread Richard Biener
On Tue, Apr 8, 2025 at 2:25 PM Robin Dapp wrote: > > Hi, > > in categorize_ctor_elements_1 we do > VECTOR_CST_NELTS (value).to_constant () > but VALUE's type can be a VLA vector (since r15-5780-g17b520a10cdaab). > > This patch uses constant_lower_bound instead. > > Bootstrapped and regtested on