Issue 154570
Summary LangRef llvm.expect / llvm.expect.with.probability clarification.
Labels new issue
Assignees
Reporter Chobbes
    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!
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to