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

    <tr>
        <th>Summary</th>
        <td>
            [LLVM][ARM] Wrong profiling information in llvm-mca for cortex-m52
        </td>
    </tr>

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

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

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

<pre>
    llvm-mca already supports Cortex-M52 target but provides Cortex-M55 information for Cortex-M52 when using llvm-mca-18/-19/-21 to profile assembly code, such as "Instruction Info",  unit "Resources"...
`llvm-mca -mtriple=arm-none-eabi -mcpu=cortex-m52 <func>.s`

![Image](https://github.com/user-attachments/assets/fca9d263-6fcc-4227-aded-5e203d2b7f2e)

And the confusing code can be found in llvm/lib/Target/ARM/ARMProcessors.td
`def : ProcessorModel<"cortex-m52", CortexM55Model,`

I would like to know if it is a typo? Or will Cortex-M52 be completely supported in the next version?

Thanks!

</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJx8U81upDgQfhpzKdEyZeiEA4dO9yJFmtauRqPds7GLxhtjI9ukJ_v0K0MmyWkuBqnsqvr-ZIzm5og61jyx5lLINU0-dHGS_02SV8Xg9Vtn7etczkqCtIGkfoO4LosPKcLZh0Q_y2uDkGS4UYJhTbAE_2o0fSk3YNzowyyT8Q5GH76-vE_kYI3G3eDXpLJ6ZNiXVZtPrCD53HQ0lkDGSPNg30B5TQzPEFc1gYzAEJ9dTGFV25BnN3qGmG_A6kzK9e8U_RoURYZ4OBwYP7Ej_0BXzimYxRITFxnm0nlHJcnBQDmrZWXiovad5waBifO4OsXEH4fIjjx34ieGFWuenmd5I9ZcGD5OKS2RiRPDnmF_M2lah4PyM8N-jRRKmZJU00wuRYZ9Rrb9jEq2Go-iPI5KlTXiQyk16bIh5ELj8DAiMWz3oSenIU0EyrtxJzETA0o6GAhGvzoNxm3MMuytGRj2PzatGPan79f9_Ct4RTH6EA9J77xoGoGJE3yUrl6TZeLMED-ZeKd4l_PaNPslPH-Q8gx3v1oN1rxQ1vHF-TuYEUwCE0FCels8Ez38GeBurP1qjCGjmhdLieyH6WiDkxE7-pnglUI03jHR7-N-TNK9xKwEPxW6E7oVrSyoqx7qij-gELyYumPdSKUHklXdtvlzRNHIuqqrkRTnj4XpkGPDBa_5Q4UVPwyjVpIrqtrHmhohWM1plsYeMq8HH26FiXGlrsL2eOSFlQPZuIUK0dEdtmrmqrkUYQ_UsN4iq7k1McXPNskku6Xx27e_r9lFzVMWqbnAP8G723sMssxfE_Uu8GbjnK5PfYo12O43Pvzli_x6Cf5fUtkX27rZiu94Xjv8PwAA___Xa1ay">