<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/94537>94537</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            llvm testsuite doesn't compile with -Oz
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          hiraditya
      </td>
    </tr>
</table>

<pre>
    Using -Oz.cmake

$ cmake -DCMAKE_C_COMPILER=/usr/local/llvm-project/build/bin/clang-19 -C ../cmake/caches/Oz.cmake   .. && make -j32 -k


```log
[ 59%] Building CXX object SingleSource/UnitTests/Matrix/AMXINT8/CMakeFiles/Matrix-AMXINT8-t_gemm_bf16.dir/t_gemm_bf16.cpp.o
[ 59%] Linking CXX executable Matrix-AMXINT8-t_gemm_bf16
[ 59%] Built target Matrix-AMXINT8-t_gemm_bf16
[ 59%] Building CXX object SingleSource/UnitTests/Matrix/AMXINT8/CMakeFiles/Matrix-AMXINT8-t_gemm_int8.dir/t_gemm_int8.cpp.o
error: _Z13inner_productPiS_S_iii: Failed to config tile register, please define the shape earlier
1 error generated.
make[2]: *** [SingleSource/UnitTests/Matrix/AMXINT8/CMakeFiles/Matrix-AMXINT8-t_gemm_int8.dir/build.make:76: SingleSource/UnitTests/Matrix/AMXINT8/CMakeFiles/Matrix-AMXINT8-t_gemm_int8.dir/t_gemm_int8.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:42285: SingleSource/UnitTests/Matrix/AMXINT8/CMakeFiles/Matrix-AMXINT8-t_gemm_int8.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8lE-PozgQxT-NuZSCoMBADhxI0kijneyMtmek1l4iAxWoiQORbebPfvqVSXq7e7bnsIdeCYFUhf1-frafspb7kagUciPkLlCzGyZTDmxUx-6HCpqp-1F-tjz2sPrwV9ie1YlEtBNRdXtjCksRVrvtvvrt7rA9bD_sP757f_eHSHYC69kagbWeWqX9V389ry5m-kKtE1g3M-vOf3kUWLdajf0qXsNqC2HoC4sc1q1qB7IC60cEAAhDEJgJzOAq_yVBWJ1esF3fWXR99NTfKnIDci1QCrmDjSfwy9s-PMDUeC6457HXdD_NpvXqn0d2n8g6D7BXzvB3gXW1f3j3-6dCYL3dqxPVrOmpv7p1V-7Q0_l8aI5xFnbsjXheaS-XcHqF6T2Pp0ck-k7t7FSjCX499y_W5cAp05P77yPf3BEeXfHSkaXyzBEyZjIiqeDwZ5zwOJI5XMzUza37yPeH-wMz-26tWFMHboJ2Go_cg2NNYKhn68gI3MJFk7IEHR15JHADgR3UhYCU0UzmqhbDogc9jWSUoy681pcDKDco5M6rCayuDwi5eUtTlosRLupJlWde-__dA7mDu8WR-IUR8WtG_KR1oiNrQpFUKWIh35pdaf1Ei89of8Z8JBNJFSeLpa8N_Scvgq5MunWyVgGVcR7nGSZFkQdDmUXZ-hjLKMd4nRdpjHGqii6RncpkmuUy4BIjTKMskhinaZqHBRbHQh2paTsZFZ0UaURnxTr0cRhOpg_Y2pnKdSqTPNCqIW2XSEYc6RssTYH-EAamXCK0mXsr0kizdfZpFsdO0_IDOG_vzI6gm8iOAnMH7XS--Nvxjd3g4zyYjS4H5y5WJJXAWmDdsxvmJmyn8y2s_53ZC43fmSvt1xL_DgAA__9HwvN1">