[LLVMbugs] [Bug 15334] CallSite::getCalledFunction returns null if the function callee pointer is a bitcast

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Feb 22 11:08:42 PST 2013


Chris Lattner <clattner at apple.com> changed:

           What    |Removed                     |Added
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Chris Lattner <clattner at apple.com> ---
This is by design: without this, the returned function's prototype won't match
the arguments to the call, which can break a lot of invariants.

Instcombine will turn call of bitcast into a direct call in many cases.

That said, I agree that the Callgraph being pessimized is a bad thing.  If this
is happening in the standard optimization flow, please bring this up on a
thread on the llvmdev mailing list.  Bugzilla is not a great place to talk
about design issues.

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130222/af483845/attachment.html>

More information about the llvm-bugs mailing list