[PATCH] Don't Promote x86_fp80 byval Pointer Arguments

Thomas Jablin tjablin at gmail.com
Mon Aug 25 18:53:08 PDT 2014

If the members of a structure passed by value are used only through geps and loads, the isSafeToPromoteArgument function will handle them correctly, so contrary to its name, the patch will allow byval x86_fp80*s to be promoted, provided they are used in a sane way. I have added a new testcase where the argument is used sanely, and consequently its argument is promoted.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5057.12932.patch
Type: text/x-patch
Size: 2382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140826/403b602e/attachment.bin>

More information about the llvm-commits mailing list