<div dir="ltr">Hi all,<div>  Are there any plans for adding an llvm.expect overload that works on pointers?</div><div>It could then be used to pass information that can be used for Indirect Call Promotion (without profiling).</div><div><br></div><div>Something like:</div><div>```</div><div>  %6 = load void ()*, ...</div><div>  %7 = call llvm.expect(%6, @hot_function)</div><div><div>  call void %7()<br></div></div><div>```</div><div>which can then be transformed into</div><div>```</div><div>  %6 = load void ()*, ...</div><div>  call void %6() !prof !1</div><div>```</div><div>where `!prof !1` refers to appropriate value profiling information. And from there, the ICP pass takes over.</div><div><br></div><div>Thanks for your comments,</div><div>cheers,</div><div>  Johan</div><div><br></div></div>