<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/112391>112391</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clang] -fprofile-sample-use option has not effect
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
mikolaj-pirog
</td>
</tr>
</table>
<pre>
Issuing `clang -fprofile-sample-use file.cc` has no effect: nothing is printed, binary isn't built with profiling info; the option seems to be ignored. When file is specified with `fprofile-sample-use=profile.prof' it works as expected. This is surprising, since similar option `fprofile-use` behaves differently -- when no file is specified, it looks for `default.profdata` in the current directory and prints error message when it doesn't find any. The `fprofile-sample-use` should behave as `fprofile-use` in this case
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0k02PpDgMhn9NuFggCB_VdeDQHypp7yvtOSQOuDskKA7dW_9-FIrRjDQ9pwgkP37svFHMNHvEUfQvon8r1J6WEMeVPoJT7-VGMczFFMx9_Id5Jz-DGGrtlJ-htFsMlhyWrNbNYbkzQv6utBZDDYti8AHQWtRJtM_gQ1oygRi2SD6hEfIVJvIq3oHYC3lJMO3kEnxRWuCBPyq8DaJ9gbQghC1R8MCIK0MKMCHQ7ENEU8F_C_pDIffgDTVZQvOgiaH-Rli0b-fPKp9CXoASfIX4waAY8P8Ndcrofxfig7rHLRKTn7M8k9cITCs5FX-q_d4ptxhqmHBRn8hgyFqM6JO7Q1nCV_b14U_lzKYELoQPBhtiZhq0anfp8DQqqcwlf-xE7zFDwVBEnUK8g_LmsWQGjDFEWJFZzfhoSQlMwHPjlrwB5e95RvzbmoYaeAm7M-coeTnfzHn4EINWjIUZW3Ntr6rAsbnIa11f264tlrHXpulR9xL7vqmlblTXPT31A-qrNeqCBY2yll1TN30zSCnbajK2f8KmRWvtNHVSdDWuilzl3OdahTgXxLzj2DSyvTaFUxM6PiIt5RFWIWVOdxxzQTntM4uudsSJfyESJXe8g9ejon_7PuHnJT_Snc54F3t045LSxqJ9FvIm5G2mtOxTpcMq5C03OY9yi-E9vwh5O6RZyNvp_TnKHwEAAP__Ink2tA">