<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/135175>135175</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Fatal error: error in backend: Broken module found, compilation aborted! while processing profiled LLVM IR with Oz optimization
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
iamaayushrivastava
</td>
</tr>
</table>
<pre>
Hi, I'm encountering a backend compilation error while using the LLVM inliner in release mode on a .ll file that contains call graph profile metadata.
**Setup**
LLVM/Clang Version: clang version 17.0.0
Commit: f4dbf5babe7a0089322ed64d1623fb31f7d51898
Target: x86_64-unknown-linux-gnu
Optimization level: -Oz
Input: LLVM IR file containing the following metadata
!33 = !{i32 5, !"CG Profile", !34}
**Error message**
module flag identifiers must be unique (or of 'require' type)
!"CG Profile"
fatal error: error in backend: Broken module found, compilation aborted!
**Issue**
When trying to process the IR with the inliner, I get a fatal backend error stating that the module flag identifiers must be unique. The error seems to be related to the !"CG Profile" flag.
Please find the attached ll file for your reference.
[505-implicit.txt](https://github.com/user-attachments/files/19685578/505-implicit.txt)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJysVE2PpDYQ_TXuS6mRMdDAgUPPTDoZaaNdbVabY1RAAc4Ym_VHz_T8-sjQnXS0UZRDJCTskuvjvXpV6JwcNVHDigdWPO0w-MnYRuKMeAlusvKMzuMZd63pL81PkolHeGainIF0Z4L2ZKUeAaHF7oV0D52ZF6nQS6OBrDUWXiepCIKL7_xE8OHD159BaiU1WZAaLClCRzCbnsBoQEiUgiE6-Qk9dEZ7lNpBh0rBaHGZYLFmfTCTxx49Jowf4yfi9wv5sGzHzRwzMnF6VKhH-ErWSaNZdoRuNZw3A6RlwhPO-PHRzLP08cGQ9-1QtNhSiZxXdSYE9Ye8Tw8iG9osHcq-SKu6Yvz4Be1Iq9NbdfjtkO-DftHmV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