[LLVMbugs] [Bug 18863] le32-unknown-nacl target does not optimize simple struct return values as primitive returns

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Feb 19 09:25:27 PST 2014


JF Bastien <jfb at google.com> changed:

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

--- Comment #5 from JF Bastien <jfb at google.com> ---
I think this is part of the le32-*-* behavior, and talking to jvoung/dschuff it
sounds like we initially wanted to allow struct returns in PNaCl but then
removed struct types to simplify things, so in PNaCl structs with a single
integer get transformed to a single integers in a later pass. In NaCl there is
no ABI issue (the IRT is the only external consumer of the ABI adn we build it
ourselves). Same stands for Emscripten.

It therefore seems like changing Clang to emit int returns when returning a
struct with a single integer in le32-*-* mode is acceptable.

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/20140219/10925928/attachment.html>

More information about the llvm-bugs mailing list