[LLVMdev] Troubling promotion of return value to Integer ...
Chris Lattner
sabre at nondot.org
Fri May 16 20:42:31 PDT 2008
On May 16, 2008, at 4:07 PM, <Alireza.Moshtaghi at microchip.com> wrote:
> To me, this “optimization” problem doesn’t seem to be a consequence
> of doing the promotion differently than what is currently being done
> in llvm.
> Anyways, I don’t agree that the information is completely lost.
> Shouldn’t an llvm pass be able to figure out if the truncated value
> is coming from a function call, and since it is aware of calling
> convention, it should be able to deduce that tmp2 can really take
> its value from function call?
No, because the callee and caller may be in different translation units.
-Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080516/847ac366/attachment.html>
More information about the llvm-dev
mailing list