[Bug target/104124] Poor optimization for vector splat DW with small consts

avinashd at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 22 07:07:55 GMT 2025


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104124

Avinash Jayakar <avinashd at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |avinashd at gcc dot gnu.org

--- Comment #7 from Avinash Jayakar <avinashd at gcc dot gnu.org> ---
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?


More information about the Gcc-bugs mailing list