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

    <tr>
        <th>Summary</th>
        <td>
             LLVM 18 breaks inlining callees with compatible target attributes
        </td>
    </tr>

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

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

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

<pre>
    Consider the following code:
```
 constexpr int32_t MinimumValue = std::numeric_limits<OutputType>::min();
 constexpr int32_t MaximumValue = std::numeric_limits<OutputType>::max();

    auto ScaleVector = _mm512_set1_ps(Scale);
    auto MinimumValueVector = _mm512_set1_ps(float(MinimumValue - ZeroPoint));
    auto MaximumValueVector = _mm512_set1_ps(float(MaximumValue - ZeroPoint));
 auto ZeroPointVector = _mm512_set1_epi32(ZeroPoint);

```
When compiling with previous versions of clang (up to and including version `llvmorg-18-init`), it can be compiled normally.  While when switching to the head of LLVM 18, following errors are got:

```
'_mm512_set1_ps' requires target feature 'evex512', but would be inlined into function 'MlasQuantizeLinearAvx512F' that is compiled without support for 'evex512'
```

This issue seems to relate with [65205](https://github.com/llvm/llvm-project/issues/65205)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyklF9vrDYQxT-NeRklAgO78MBD_nSfErVVr3KlvqwMDDCtsak93k366SuzmyYb5V5VvRICIezfmXNmsPKeRoPYiPJWlPeJCjxZ17yQGQc0Y9La_qW5s8ZTjw54Qhis1vZIZoTO9ijyG5Hei_RGbNLztb5CZ41nfF4ckOFc7hkeydAc5ielA4LI78FzH7fnNybM6Kjba5qJvcjvfg68BP7ysqDIfzqtmckIWQlZi_z22xLq-Uck1PMHibMQAKjAFn7rlMYn7Ni6lb6f5zKTe4-c7RcvZLUuuKjxdet7898jDNoqFrK6COsKfkdnf7FkOMI_5b9z_p_475P6Dn-F__v1G2RcKJdCVheUyww_jMfXCQ10dl5Ix0k6Ek-wODyQDR4O6DxZ48EO0GllRhCyCguwBWV6INPp0Mdt54UgNqnWh9m68SqrrsgQR6Ho5A6IoVMGWjzLYQ_Gullp_XIN8HUijXCM1fgjcTdFLNt10CdUfSzh4eHpEbIqwt5mH52zzoNyCKPlt7_gM7NCbj_2YQsO_wrk0AMrNyLDgIqDQxByiwd8LjMp5DZqtoHhaIPuowcymgzGDNjCEEzHq3-5fdTK_xqUYfobH8igcjeHCNlFLZ4UA_m3BGLeNjD4sCzWMQyxqRfCn_pY718m8kDeBwSPOPsYl0OtGE9tFOXtppRpKcp7IauJefExnljJbiSeQnvd2VnIXWzZ-XG1OPsHdizkbiV7IXcniKyTvsn7Oq9Vgk22qassq6q6SqZmK7Hviw7LYbPFoauLTZV1RatShVVR1X1CjUxlnqWySPMiy6vrHJXMVa26IsvaelOLIsVZkb6ONVxbNyarerNN01QmWrWo_XowSmnweDItpIznpGvWutswelGkmjz7NwoTa2xeBwdah-pPf-rdem4qrRH9Ka7YE8XUanydBMXsqA2MPglON_8_wdXGPwEAAP__owDgzQ">