[Bug target/104124] Poor optimization for vector splat DW with small consts
jskumari at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 24 05:25:03 GMT 2025
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104124
--- Comment #8 from Surya Kumari Jangala <jskumari at gcc dot gnu.org> ---
(In reply to Avinash Jayakar from comment #7)
> I had a question regarding the patch that fixed this PR.
> In the commit message it is mentioned that for 0 and -1 the splat and unpack
> will not work.
> 1. But in the code, the check is for +1
> value = INTVAL (elt);
> if (value == 0 || value == 1
> || !EASY_VECTOR_15 (value))
> return false;
>
> should this be corrected?
>
> 2. Any reason why not for 0 and -1?
Yes, it should be -1. I have a patch for this at
https://gcc.gnu.org/pipermail/gcc-patches/2025-August/692871.html
More information about the Gcc-bugs
mailing list