<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/154570>154570</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LangRef llvm.expect / llvm.expect.with.probability clarification.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Chobbes
</td>
</tr>
</table>
<pre>
In the LangRef both of these intrinsics have return values:
https://llvm.org/docs/LangRef.html#llvm-expect-intrinsic
https://llvm.org/docs/LangRef.html#llvm-expect-with-probability-intrinsic
I'm a little unclear about what these intrinsics are supposed to return.
The documentation for both of these intrinsics says:
> This intrinsic is lowered to the val.
`val` is the first argument to both of these intrinsics, so am I correct in assuming that both of these intrinsics just return their first value?
Thanks!
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJykktFunDwQhZ_G3IyCjFlg94KL_PmLFKlXVV5ggAE7NfbKHu82b19B2CZRtVeVkJDt8TmeOR_GaGZH1IrqP1H9n2Fi7UP7pH3fU8x6P761zw5YE3xHN_-gCXrPGvy07kUC4zgYF80QQeOFIBCn4OCCNlEU5aOQ66eZz9tKdUJ11l6W3IdZqG70QxSq27VzzYsVqlwLHujXmQZ--GPwbzJXw_rhHHyPvbGG377oCvn4LFSzAII1zJYgucESBsDeJ4arRv67XwwEMZ3PPtII7PfW83e9F00w-iEt5BjZeAeTD_dnF_HtY1qi_AYv2sSPAjARrL9SeHda47ig3a1ELS9oRS3XqvVoMiEyYJg39_XCPV-hniB6wAWeYfAh0MBgHGCMaTFuBl4bv_vo1xT5FjhrMmF33sIXZXebBLqfUagiG9tyPJUnzKgtmqpqZFM1x0y36nSomvpYUCmrQWJ5mspBTUqdVFmPp4Yy0yqpKnlUsqhLVR3zYzFhMRbHqpZU41iKg6QFjc1vTGQmxkRtUR2qRmYWe7JxY1wpR1fYToVSK_Kh3Tjp0xzFQVoTOX7IsGFL7Q39bfsdKBCq-7zOV8DyT4DBYDGYyQxb-nmWgm2_8jsb1qnPB7_sMO-_FdNXGliobnvnSvbeyKVVvwMAAP__7hc_2Q">