On Wed, 31 Jan 2024, Richard Biener wrote: > On Tue, 30 Jan 2024, Andre Vieira wrote: > > > > > This patch adds stmt_vec_info to TARGET_SIMD_CLONE_USABLE to make sure the > > target can reject a simd_clone based on the vector mode it is using. > > This is needed because for VLS SVE vectorization the vectorizer accepts > > Advanced SIMD simd clones when vectorizing using SVE types because the > > simdlens > > might match. This will cause type errors later on. > > > > Other targets do not currently need to use this argument. > > Can you instead pass down the mode?
Thinking about that again the cgraph_simd_clone info in the clone should have sufficient information to disambiguate. If it doesn't then we should amend it. Richard.