<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/139831>139831</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Easiest way to force inline every function other than entry? (LLVM12)
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
alexthomasv
</td>
</tr>
</table>
<pre>
Is there an easy way to inline every single function except entry? You can assume there is no recursion. Currently I have an LLVM file that has the attributes noinline, and I attempted to forcibly remove each one using
`opt-12 -force-remove-attribute=noinline -force-remove-attribute=optnone -forceattrs test_opt.bc`
but this didn't actually change any of the attributes. After this, my plan was to force every function to have always-inline, but I can't even remove the noinline attributes of my program first. What's the best way to inline every single function except entry? Thank you!
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJycU82OozgQfhpzKQWBgfwcOPR2b6RIvbfVruY0KkMRPGNsZJeT5u1HJul0zxzmMBISB1fV91eFIeizJWpF85doXjKMPDrfoqE3Ht2E4ZIp1y_tKQCP5AnQAmFY4IoLsANtjbYEdCG_QND2bAiGaDvWzgK9dTQzkGW_iOoIX1yEDi1gCHGi-0AdwDrw1EUftLM5PEfvybJZ4AQjXlbI19f__oFBm9SEDCOudACZvVaRKc24URHyGdD2cEqPNM1MfeI5ON9pZRbwNLkLAWE3grMEMZEGUTylb1u4mTelhE2qp82tePOAEdXLO85vStzM1j0q0ksApsBf3cy56sS2uOOpyMCjDtDr3gq5Y8COIxqzQDeiPSfpC7jhF605PA1Mfm1NcqcFZoMWrsmVm9T3RB5RsLt7aa64hM2HV4nDKaWy4tOF7LtFCfSh9pPTblgRvTt7nGDQPnAO_4_IQu5usSgK_EcL8u-I9jssLgpZZn1b9YfqgBm15a7elYe6ODTZ2DZNU8ntjoZKVXu176gq9nXZ90PRbGVBKtOtLGRTNGVdVHVZNfmAfVmoYVfWhcJq2Iq6oAm1yY25TLnz50yHEKktq8O-KjODikxYL0JKS1dYX4WU6UB8m5o2Kp6DqAujA4ePMazZUPs3Bv3JgVseP_nwMMClG0g7bT9MEHKf1r2UQh6y6E07Ms9BVE9CHoU8njWPUeWdm4Q8JuT7bzN79406FvK48g1CHu-CLq38EQAA__8XNVgy">